服务热线
178 0020 3020
散点图
> library(ggplot2)
> getwd()
[1] "C:/Users/Administrator/Desktop/R语言"
> a<-read.csv(file="R2-1-1.csv")
> ggplot(a,aes(x=A,y=B,color=SIZE))+geom_point(size=3,shape=21)+xlab("A gene expression")+ylab("B gene expression")+xlim(-2,3)+ylim(-1,3)+ggtitle("R2-07")
折线图
library(ggplot2)
> getwd()
[1] "C:/Users/Administrator/Desktop/R语言"
> a<-read.csv(file="R2-1-2.csv")
> ggplot(a, aes(Time,value,color =SIZE,shape = SIZE))+geom_line(color = "orange")+geom_point(size=4)+ ggtitle("R2-07")
附件