ggplot (itsdata, aes(x=timepoint, y=RE15))
+geom_point (aes(color=x2),size=3)
geom_line ()+geom smooth(method=lm", se=F, aes(color=X2))+
scale_x_continuous (breaks=c(1: 24))+scale y continuous (limits=c(0,15))
+scale_color_ continuous(name="", breaks=c("0" ,"1"), labels=c( before",after))
+geom_vline (xintercept=13, linetype="dashed")
+xlab("时间点")+ylab(" renos")+ theme_bw( base_size=14)+
theme (legend. position=c(0.9,0.9),legend. key=element_ rect (fill="transparent"))
'geom smooth( )'using formula 'y~x'
Error in UseMethod("rescale ):
resca1e"没有适用于" character"目标对象的方法
scale()函数的格式,x——就是需要标准化的数值矩阵
(breaks=c(1: 24))不是矩阵吧