r - 使用 ggplot R 将条形图和折线图与数值和分类变量相结合
问题描述
我正在尝试使用连续变量和分类变量在 ggplot 中组合条形图和线图。我基本上需要做这样的事情:
到目前为止,我有这个代码:
ggplot(data=nutrients, aes(x=Plot, y=Level, fill=Factor)) +
geom_bar(stat="identity", position = 'dodge', colour="black")
解决方案
推荐阅读
- java - 是否可以将 pushID 绑定到 Firebase 数据库中的 userUid
- c++ - c++ *(Type*) 属性名
- python - 如何在 jupyter notebbok 中访问内核变量
- android - Android:更改联系人时,带有广播接收器的前台服务停止工作
- c++ - 对象是 C++ 中的存储位置还是值?
- node.js - 我可以使用“AND”来连接或创建棱镜的位置吗?
- jquery - JQuery 每个输入函数都停在最后一个元素而不是前一个元素
- python - 如何为在同一台机器上运行的客户端和服务器设置不同的 IP?
- php - 记录更新、事务死锁
- reactjs - 如何在 ComposedChart 中绘制多条带有偏移的线?