具有适当组集的锯齿状绘图线(R 中的 ggplot)
我正在尝试使用以下代码创建折线图:
ggplot(lnewdat, aes(x = Cl, y = Probability, colour = Level, group = Level)) + geom_smooth(stat = 'identity') + facet_grid(Species~Year)
我得到一个与此图类似的图:
当寻找锯齿线的解决方案,一切都提到设置“组”。正如你从我的代码中看到的,我已经做到了。感谢您的帮助!
I am trying to create line graph with the following code:
ggplot(lnewdat, aes(x = Cl, y = Probability, colour = Level, group = Level)) + geom_smooth(stat = 'identity') + facet_grid(Species~Year)
I get the a graph that looks similar to this graph:
When looking up a solution to the jagged lines, everything mentions setting the "Group". As you can see from my code, I have already done that. Your help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论