相关疑难解决方法(0)

用ggplot填充R中两条黄土平滑线之间的区域

我想知道如何在ggplot中填充黄土平滑线之间的区域.

以下数据框用于图片:

    x         y      ymin     ymax grp     ydiff
1   1  3.285614  3.285614 10.14177 min 6.8561586
2   1 10.141773  3.285614 10.14177 max 6.8561586
3   2  5.061879  5.061879 11.24462 min 6.1827368
4   2 11.244615  5.061879 11.24462 max 6.1827368
5   3  8.614408  8.614408 13.45030 min 4.8358931
6   3 13.450301  8.614408 13.45030 max 4.8358931
7   4  6.838143  6.838143 12.34746 min 5.5093150
8   4 12.347458  6.838143 12.34746 max 5.5093150
9   5 10.390673 10.390673 14.55314 min 4.1624713
10  5 14.553144 10.390673 14.55314 max 4.1624713
11  6 …
Run Code Online (Sandbox Code Playgroud)

r smooth fill ggplot2 loess

19
推荐指数
1
解决办法
9351
查看次数

标签 统计

fill ×1

ggplot2 ×1

loess ×1

r ×1

smooth ×1