-
Notifications
You must be signed in to change notification settings - Fork 10
/
Fig.S14.EPICON.genotype.2019.04.07.Rmd
49 lines (39 loc) · 1.69 KB
/
Fig.S14.EPICON.genotype.2019.04.07.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "Untitled"
author: "Cheng Gao"
date: "4/7/2019"
output: html_document
---
```{r, message=FALSE, warning=FALSE, fig.height = 2, fig.width = 3}
setwd("/Users/chengg/Google Drive/EPICON/Mycobiome/Fungal ITS/statistic/Total.fungi")
library(ggplot2)
rm(list = ls())
load("EPICON.data.preparation.RC.bNTI.ted.2019.04.19.Rdata")
da1<-data.frame(fung.rar,env)
lineFig<-function(habitat,otu) {
da<-da1[da1$Habitat== habitat,]
da$value<- da[, otu]
p3<-ggplot(data = da, aes(x = TP, y = value, color=Cultivar)) +
geom_smooth(size=0.5,method="loess")+
theme_bw()+
#facet_wrap(~Treatment1, nrow = 3,strip.position= 'left')+
scale_color_manual(values=c("blue3","red")) +
geom_vline(aes(xintercept=8.99), colour="blue", linetype="dashed")+
theme(axis.ticks = element_line(linetype = "blank"), panel.grid.major = element_line(linetype = "blank"), panel.grid.minor = element_line(linetype = "blank"), panel.background = element_rect(fill = NA))+labs( x = NULL, y = NULL, colour = NULL)+ theme(legend.position = "none") + theme(axis.line = element_line(colour = NA, size = 0), axis.ticks = element_line(colour = NA, size = 0))
return(p3)
}
lineFig("Root","OTU19_Sarocladium")
lineFig("Root","OTU20_Xylariales")
lineFig("Root","OTU207_Magnaporthiopsis")
lineFig("Root","OTU34_Stachybotrys")
lineFig("Rhizosphere","OTU20_Xylariales")
lineFig("Rhizosphere","OTU29_Rhizopus")
lineFig("Rhizosphere","OTU207_Magnaporthiopsis")
lineFig("Leaf","OTU24_Cryptococcus")
lineFig("Leaf","OTU124_Cryptococcus")
lineFig("Leaf","OTU61_Cryptococcus")
lineFig("Leaf","OTU26_Sporobolomyces")
lineFig("Leaf","OTU11_Epicoccum")
lineFig("Rhizosphere","OTU20_Xylariales")
lineFig("Rhizosphere","OTU29_Rhizopus")
```