johnmy 发表于 2016-9-25 18:57 
p1 <- ggplot(data=da1,aes(x=x,y=value,group=variable,linetype=variable,color=variable, shape=variable))+geom_point()+geom_line()
p1+ggplot()+geom_point(aes(x=.81,y=c(.5,.8),color=as.factor(y1)),size=3)+
scale_color_manual(values = c( "red", "blue", "darkgreen", "orange"), labels = c("four", "six", "eight","55"))
谢谢您的回答,对我的帮助很大,我略作修改,想先标点,再连线。p1是可以生成的啊,为何后一句报错了呢?