目标:利用R语言统计描绘50组实验对比结果
第一步:导入.csv文件
X <- read.table("D:abc11.csv",header = TRUE, sep = ",")
第二步:绘图
ggplot(X, aes(x = aaa, y = bbb)) + geom_point() + geom_smooth(method = "lm") + labs(x = "横坐标标题", y = "纵坐标标题")
结果:
2021-10-31 01:45:28
目标:利用R语言统计描绘50组实验对比结果
第一步:导入.csv文件
X <- read.table("D:abc11.csv",header = TRUE, sep = ",")
第二步:绘图
ggplot(X, aes(x = aaa, y = bbb)) + geom_point() + geom_smooth(method = "lm") + labs(x = "横坐标标题", y = "纵坐标标题")
结果: