Each element is associated with an element function, which describes the visual properties of the element. For example, element_text() sets the font size, colour and face of text elements like plot.title.
ggsci offers a collection of high-quality color palettes inspired by colors used in scientific journals, data visualization libraries, science fiction movies, and TV shows.
这么说吧,你图画好了,像按照杂志配色,就使用这个包就行,非常简朴好用,这个包提供包罗天然出书团体Nature Publishing Group,美国科学促进会American Association for the Advancement of Science,新英格兰杂志The New England Journal of Medicine,另有jama,Lancet等等顶级期刊配色,以是想要成为大佬,得抓紧学会使用ggsci了。
用起来也很简朴,做好图之后直接改动相应的scale就行,比如我刚刚做的图是用scale_fill_manual来定义颜色的,我直接将这行代码改为scale_fill_aaas,我就可以得到Science杂志的配色如下:
[图片上传失败...(image-88c02-1657458632166)]
Science配色
改为scale_fill_npg,我便可以得到nature杂志的配色:
[图片上传失败...(image-505e83-1657458632166)]
nature杂志配色
改为scale_fill_nejm,我便可以得到新英格兰医学杂志的配色:
[图片上传失败...(image-300ef3-1657458632166)]
NEJM配色 不得不说高端杂志的调色盘,照旧挺悦目标。
有没有一种看了上面的内容感觉发Science有望的感觉,假如有,请收藏本文并转发扩散,谢谢各人啦,假如还没有也请收藏本文,说不定下次再回看就有了,哈哈哈哈。
祝福各人早日成为大佬。
小结