R语言怎么把两个散点图画在一起vd2=c

如题所述

require(ggplot2)
vd = rbind(data.frame(v=vd1, y=y, t=as.factor(1)), data.frame(v=vd2, y=y, t=as.factor(0)))
ggplot(vd, aes(x=v, y=y)) + geom_point(aes(color=t))
温馨提示:答案为网友推荐,仅供参考
相似回答