jjzjj

跟着Nature Metabolism学作图:R语言ggplot2水平堆积柱形图并添加同组连线

论文Single-cellprofilingofvascularendothelialcellsrevealsprogressiveorgan-specificvulnerabilitiesduringobesityhttps://www.nature.com/articles/s42255-022-00674-x#Sec58s42255-022-00674-x.pdfhttps://github.com/Osynchronika/sc_EC_obesity_atlas大部分作图的数据都有,可以试着用论文中提供的数据复现一下论文中的图今天的推文我们复现一下论文中的figure2b水平堆积柱形图

跟着Nature Communication学数据分析:R语言利用宏基因组的相对丰度数据做主坐标分析(PcoA))

论文MicrobiomesintheChallengerDeepslopeandbottom-axissedimentshttps://www.nature.com/articles/s41467-022-29144-4#code-availability对应代码链接https://github.com/ucassee/Challenger-Deep-Microbes论文里提供了大部分图的数据和代码,很好的学习材料,感兴趣的同学可以找来参考,今天的推文重复一下论文中的Figure2bimage.png部分数据集截图如下相对丰度数据image.png分组数据image.png读取数据集读取相对丰

跟着Nature Communications学作图:R语言ggplot2散点图及添加文字标签

论文MiDAS4:Aglobalcatalogueoffull-length16SrRNAgenesequencesandtaxonomyforstudiesofbacterialcommunitiesinwastewatertreatmentplantshttps://www.nature.com/articles/s41467-022-29438-7数据链接https://figshare.com/articles/dataset/Dueholm2021a_data_zip/16566408/1代码链接https://github.com/msdueholm/MiDAS4今天的推文重复一下

跟着Nature学作图:R语言ggplot2频率分布直方图和散点图添加误差线

论文Asaturatedmapofcommongeneticvariantsassociatedwithhumanheighthttps://www.nature.com/articles/s41586-022-05275-ys41586-022-05275-y.pdf代码没有公开,但是作图数据基本都公开了,争取把每个图都重复一遍今天的推文重复论文中的extendedFigure4频率分布直方图和散点图添加误差线首先是图a频率分布直方图library(readxl)dat1")image.png第二个图bdatbimage.png最后是拼图library(patchwork)p1+p2imag

跟着Nature Metabolism学作图:R语言ggplot2分组折线图添加误差线

论文Single-cellprofilingofvascularendothelialcellsrevealsprogressiveorgan-specificvulnerabilitiesduringobesityhttps://www.nature.com/articles/s42255-022-00674-x#Sec58s42255-022-00674-x.pdfhttps://github.com/Osynchronika/sc_EC_obesity_atlas大部分作图的数据都有,可以试着用论文中提供的数据复现一下论文中的图今天的推文我们复现一下论文中的figure4c分组折线图并添

跟着Nature学作图:R语言ggplot2分组折线图完整实例

论文Graphpangenomecapturesmissingheritabilityandempowerstomatobreedinghttps://www.nature.com/articles/s41586-022-04808-9#MOESM8没有找到论文里的作图的代码,但是找到了部分组图数据,我们可以用论文中提供的原始数据模仿出论文中的图今天的推文重复一下论文中的Figure1cimage.png今天主要的知识点是多个图例的时候如何分开放,目前想到的办法是使用ggpubr这个R包把图例单独挑出来,然后使用annotation_custom()函数再把图例加回去。不知道有没有更方便的办法

跟着Nature Genetics学作图:R语言ggplot2普通箱线图/分组箱线图/分面箱线图

论文PlasmaproteomeanalysesinindividualsofEuropeanandAfricanancestryidentifycis-pQTLsandmodelsforproteome-wideassociationstudieshttps://www.nature.com/articles/s41588-022-01051-w本地pdfs41588-022-01051-w.pdf代码链接https://zenodo.org/record/6332981#.YroV0nZBzichttps://github.com/Jingning-Zhang/PlasmaProtein/

跟着Nature Communications学作图:R语言ggplot2柱形图展示GO富集分析的结果

论文Chromosome-levelassembliesofmultipleArabidopsisgenomesrevealhotspotsofrearrangementswithalteredevolutionarydynamicshttps://www.nature.com/articles/s41467-020-14779-y拟南芥NC_panGenome.pdf分析代码的github主页https://github.com/schneebergerlab/AMPRIL-genomes论文中组装了7个拟南芥的基因组,做了一些泛基因组相关的分析,数据和大部分代码都公开了,我们试着复现一下其

跟着Nature学作图:R语言ggplot2箱线图/散点图完整示例

论文Graphpangenomecapturesmissingheritabilityandempowerstomatobreedinghttps://www.nature.com/articles/s41586-022-04808-9#MOESM8没有找到论文里的作图的代码,但是找到了部分做图数据,我们可以用论文中提供的原始数据模仿出论文中的图今天的推文重复一下论文中的Figure4dFigure4e散点图和箱线图image.png箱线图示例数据集image.png作图代码library(readxl)dat01p1p1image.png散点图作图代码dat02p2p2image.png拼图

跟着Nature Metabolism学作图:R语言ggplot2散点图

论文Independentphenotypicplasticityaxesdefinedistinctobesitysub-typeshttps://www.nature.com/articles/s42255-022-00629-2#Sec15s42255-022-00629-2.pdf论文中没有公开代码,但是所有作图数据都公开了,我们可以试着用论文中提供的数据模仿论文中的图今天的推文重复一下论文中的Fig1a散点图image.png散点图背后的圆圈暂时搞不懂是怎么做的,ggplot2里有一个函数geom_contour()应该可以实现,但是暂时没有搞清楚怎么使用两个图我采用拼图的形式来实现