µ±Ð¡ÏÉÓÖ´òÏÂ"½ñÌì"ÕâÁ½¸ö×ÖµÄʱºò£¬Ð¡Ê±ºòÿÌìһƪÈռǵĿ־åºÃÏñÓÖ»ØÀ´ÁË£¬¹ýÈ¥Õâô¾Ã£¬ÎÒµÄÎÄѧ¹¦µ×¹ûȻûÓÐÒ»µã³¤½ø£¡
½ñÌì¸ø´ó¼Ò·ÖÏíµÄͼÀ´×ÔÓÚNatureBiotechnologyÉϵÄһƪÎÄÕ¡£NatureϵÁеÄÎÄÕ¾Ͳ»Óöà˵ÁË£¬ÎÞÊý¿ÆÑÐÈËÐÄÖеÄÉñ¿¯£¬Ò»ÆªNatureÎÄÕÂÐèÒªºÄ·Ñ´óÁ¿µÄÐÄѪºÍ¾·Ñ¡£²»¹ýСÏÉÏëÌáÐÑ´ó¼Òһϣ¬µ±ÄãÖÐÁËNature£¬³ýÁ˸ßÐËÖ®Í⻹ҪÁôÒâһϣ¬ÎÄÕ·¢±í»¹ÒªÔÙ»¨Ò»±Ê¾Þ¿î¡£Èç¹ûÑ¡ÔñOA·¢±í£¬°æÃæ·ÑÊÇ€£¬»»³ÉÈËÃñ±ÒÒªÔª£¬²»µÃ²»ËµÕâÊǸöºÜ¼ªÀûµÄÊý×Ö°¡£¬¹þ¹þ¡£ÓÐÒâ˼µÄÊÇ£¬Nature¹Ù·½Ò²¸øÁ˽âÊÍ£¬ÎªÊ²Ã´ËûÃǵİæÃæ·Ñ»á±ÈÒ»°ãµÄÆÚ¿¯¹óÕâô¶à£¬´ó¸Å¾ÍÊÇËûÃÇÊÕµ½µÄ¸å¼þÌ«¶à£¬¾Ü¸å»¨·ÑÁË´óÁ¿µÄ¾«Á¦¡£Ð¡ÏÉÖ»ÓÐÒ»¸öÆÀ¼Û£¬±©ÀûÇÒ°Á½¿¡£Ï£ÍûÓÐÒ»ÌìÔÛÃǹúÄÚÒ²ÄÜÓиöÕâÑùµÄÆÚ¿¯¡£
»Ø¹éÕýÌ⣬Ҫģ·ÂµÄͼÈçÏ£º
Step1.»æͼÊý¾ÝµÄ×¼±¸
Ê×ÏÈ»¹ÊÇÒª°ÑÄãÏëÒª»æͼµÄÊý¾Ýµ÷Õû³ÉRÓïÑÔ¿ÉÒÔʶ±ðµÄ¸ñʽ,ÔÚexcelÖб£´æ³Écsv¸ñʽ¡£Êý¾ÝµÄ¸ñʽÈçÏÂͼ£º
Step2.»æͼÊý¾ÝµÄ¶ÁÈ¡
data-read.csv(¡°yourfilepath¡±,header=T)
Step3.»æͼËùÐèpackageµÄµ÷ÓÃ
library(reshape2)library(ggplot2)library(ggbeeswarm)##µ÷ÓÃ֮ǰÏÈ°²×°install.packages("ggbeeswarm")
Step4.»æͼ
ÏÈ»³öÆÕͨµÄÃÛ·äͼ
df-melt(data)#¿íÊý¾Ý±ä³É³¤Êý¾Ýp1-ggplot(df,aes(x=variable,y=value))+geom_beeswarm()p1
µ÷ÕûµãµÄ·Ö²¼
p2-ggplot(df,aes(x=variable,y=value))+geom_beeswarm(cex=2,priority="descending")p2
ÊÖ¶¯Ö¸¶¨ÑÕÉ«
p3-ggplot(df,aes(x=variable,y=value,color=variable))+geom_beeswarm(cex=2,priority="descending")+scale_color_manual(values=c("#AF0F11","#A6","#B34","#7F","#D","#D9D92D","#C53"))p3
ת»»xÖáºÍyÖá
p4-ggplot(df,aes(x=variable,y=value,color=variable))+geom_beeswarm(cex=2,priority="descending")+scale_color_manual(values=c("#AF0F11","#A6","#B34","#7F","#D","#D9D92D","#C53"))+coord_flip()p4
ÊÖ¶¯µ÷ÕûxÖáºÍyÖá
df$variable-as.factor(df$variable)level-levels(df$variable)p5-ggplot(df,aes(x=variable,y=value,color=variable))+geom_beeswarm(cex=2,priority="descending")+scale_color_manual(values=c("#AF0F11","#A6","#B34","#7F","#D","#D9D92D","#C53"))+scale_y_continuous(position="right")+coord_flip()+scale_x_discrete(limits=rev(level))+theme(axis.line=element_line(colour="black"),panel.background=element_blank(),axis.ticks=element_line(),axis.text=element_text(color="black"))+labs(x="",y="Geneexpression")p5
¸Ä±äµãµÄÐÎ×´
df$variable-as.factor(df$variable)level-levels(df$variable)p6-ggplot(df,aes(x=variable,y=value,color=variable))+geom_beeswarm(cex=2,priority="descending",shape=23)+scale_color_manual(values=c("#AF0F11","#A6","#B34","#7F","#D","#D9D92D","#C53"))+scale_y_continuous(position="right")+coord_flip()+scale_x_discrete(limits=rev(level))+theme(axis.line=element_line(colour="black"),panel.background=element_blank(),axis.ticks=element_line(),axis.text=element_text(color="black"))+labs(x="",y="Geneexpression")p6
ͨ¹ýEPSµ¼³öµÄ¸ßÇåͼ£¨Í¼ÉÏ¿´ÆðÀ´Ã»ÓÐÄÇô¸ßÇ壬Ӧ¸ÃÊÇͼƬÉÏ´«Ê±±»Ñ¹Ëõ£¬²»¹ýÄÜ¿´³öµãµÄÐÎ×´¸üÇåÎú¡¢¹æÔò£©
²Î¿¼ÎÄÏ×£ºEnhanceddetectionofminimalresidualdiseasebytargetedsequencingofphasedvariantsincirculatingtumorDNA,NatureBiotechnology,
»ÆXiaoÏÉ
תÔØÇë×¢Ã÷£ºhttp://www.0431gb208.com/sjszyzl/209.html