`(o……o)` 发表于 2015-5-8 13:35 
怎么用ggplot2包画这个图?
还是完全满足你的想法:
library(ggplot2)
library(tidyr)
df为存有你的数据的dataframe
df0<-gather(df,key=Vars,value=ys,-x)
ggplot(df0,aes(x=x,y=ys,colour=Vars))+geom_line(aes(linetype=Vars))+geom_point(aes(shape=Vars))
利用ggplot2 使在R 的绘图相当容易,传统的绘一个图写一大堆程序,是不值当的!!