2
我经历了Udacity的课程上R,和练习一个有我为了绘制散点图和覆盖了“的意思是”线和三条“四分”行编写代码。哪里可以找到在`geom_line`的`fun`参数文件?
ggplot(aes(x = age, y = friend_count), data = pf) +
xlim(13, 90) +
geom_point(alpha = 0.05, position = position_jitter(h = 0), color = 'orange') +
coord_trans(y = 'sqrt') +
geom_line(stat = 'summary', fun.y = mean) +
geom_line(stat = 'summary', fun.y = quantile, fun.args = list(probs = 0.1), color = 'blue', linetype = 2) +
geom_line(stat = 'summary', fun.y = quantile, fun.args = list(probs = 0.5), color = 'blue', linetype = 2) +
geom_line(stat = 'summary', fun.y = quantile, fun.args = list(probs = 0.9), color = 'blue', linetype = 2)
我想看到的geom_line
内fun
参数的文件,所以我看了看文档geom_line
(两者中的R Studio和在线),以及geom_line
函数如图
geom_line(mapping = NULL, data = NULL, stat = "identity", position = "identity",
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...)
我没有看到fun
参数的任何地方。所以我的问题是:如果我不已经有大约从Udacity教训fun
参数,我怎么会知道它从看文档和什么我期待获得更多的信息?
@BenRubin“他们也可能是参数配对GEOM/STAT”:在'fun.y'论据是'stat_summary',你会发现他们有记载。 – joran