zl程序教程

您现在的位置是:首页 >  后端

当前栏目

【画图】用413篇疑似造假文章信息画个图,附文章list链接

List链接 信息 文章 画图 疑似 造假 413
2023-06-13 09:15:24 时间

上面这个事就不多说了,想画图的往下看,

想要文章的list,关注公众号后回复:文章list

Tips

上面这个数据x轴内容特别多,可能会遇到一下几个问题;

1、不需要legend

theme(legend.position = "none")

2、色盘颜色不够

scale_fill_manual(values=colorRampPalette(pal_lancet("lanonc")(9))(53))

3、翻转一下更合适

coord_flip()

画图

library(ggplot2)
library(ggsci)
pubpeer<-read.csv("Papermill Productions - Sheet1.csv",header = T)
p1<-ggplot(data=pubpeer,aes(x=Journal,fill=Journal))+
        geom_bar(stat = "count")+
        theme_bw()+
        theme(axis.text.x = element_text(hjust = 1),legend.position = "none")+
        scale_fill_manual(values=colorRampPalette(pal_lancet("lanonc")(9))(53))+coord_flip()
p1
p2<-ggplot(data=pubpeer,aes(x=Affiliations.Hospital,fill=Affiliations.Hospital))+
        geom_bar(stat = "count")+
        theme_bw()+
        theme(axis.text.y = element_text(hjust = 1,size=7),legend.position = "none")+
        scale_fill_manual(values=colorRampPalette(pal_lancet("lanonc")(9))(143))+coord_flip()
p2

关于数据

1、第一幅图上面的杂志大家要小心了,尤其是统计数字比较多的!

2、大家还是瞄准最新文件上的三高努力吧

3、不要存在侥幸心理,踏踏实实做实验

One More Thing......