第一次学R语言
setwd('C:/Users/SURFACE/Desktop') 工作环境
a=read.table('lw.txt',header=T) 赋值
ggplot(a,aes(x=sample,y=value))+geom_boxplot() 画图
点图
setwd('C:/Users/SURFACE/Desktop')
a=read.table('lw.txt',header=T)
ggplot(a,aes(x=sample,y=value))+geom_boxplot()
plot(a$value, a$number, col=cols, panel.first=grid(),main="Volcano plot", xlab="log2(fold-change)", ylab="-log10(adjusted p-value)",
pch=20, cex=1.0,cex.axis=1.3, cex.lab=1.2)
网友评论