散点图

作者: bio_橡树 | 来源:发表于2018-02-24 15:45 被阅读0次

    data<-read.table("all.corr",header=TRUE,row.names=1)
    library(ggplot2)
    png("test.png")
    p<-ggplot(data,aes(x=data$R7111062,y=data$R7111063))+geom_point()+labs(x="R7111062",y="R7111063",title = "R7111062vsR7111063")
    theme<-theme(axis.title= element_text(size=20, family="myFont", color="black", face= "bold", vjust=0.5, hjust=0.5))+theme(axis.text.y= element_text(size=30, family="myFont", color="black",vjust=0.5, hjust=0.5))+theme(axis.text.x= element_text(size=30, family="myFont", color="black", vjust=0.5, hjust=0.5))+theme(title= element_text(size=35, family="myFont", color="black", face= "bold", vjust=0.5, hjust=0.5))
    p+theme
    dev.off()

    相关文章

      网友评论

          本文标题:散点图

          本文链接:https://www.haomeiwen.com/subject/zhhbnxtx.html