1
データフレーム内の特定の行の平均をプロットすることはできますか?stat_summary特定の行のみ
たとえば、cyl == 6
のmtcars
データセットを持つすべての車のうち、hp
を意味します。私はすべての平均をプロットする方法を知っています:
ggplot(mtcars, aes(carb, hp)) +
stat_summary(fun.y = mean, geom = "line")
ありがとう!
感謝を!完璧! – Pascal