r - R行命令不在lineplot中添加行
问题描述
当试图在 R 上运行我的代码时,它运行并产生了一半的工作。lines 命令没有添加所需的第二行,我不明白为什么。感谢您的帮助!代码:
Forceps <- c(6.61, 4.87, 3.23, 2.00, 1.29, 0.98)
Vacuum <- c(5.05, 7.21, 7.66, 5.93, 5.45, 4.40)
year <- c(1990, 1994, 1998, 2002, 2006, 2010)
plot(year, Forceps, type = "l", xlab = "Year", ylab = "Frequency", main = "Forceps (black) vs Vacuum (red) ", ylim = c(0,10))
lines(year, Vacuum, col = "red”)
解决方案
推荐阅读
- c# - Using var as global in C# unity
- firebase - PluginRegistry cannot be converted to FlutterEngine
- java - JavaFX:可以从非 UI 线程安全地操作节点的转换吗?
- django - 用户模型的密码是加密的?
- python - 使用 python 拟合先知模型时的问题
- r - WikipediaR:如何使用 contribs() 自动化功能?
- json - 如何在 Groovy 中展平和拆分这个 JSON?
- javascript - 如何在 Three.JS 中更改导入模型的位置?
- xamarin - 如何为 xamarin.forms iOS 中的条目单元格设置背景颜色和文本颜色?
- c++ - 是否有理由在标题中保留完全专业化的模板?