library(ggplot2)
Myco_data <- read.csv("C:/Users/prana/OneDrive/Desktop/COLONIZATION%.csv")
Myco_data
##        Treatments Mycorrhization
## 1             AMF          60.62
## 2             AMF          61.32
## 3             AMF          62.63
## 4             AMF          66.84
## 5             AMF          72.11
## 6     AMF + ΔnifD          77.89
## 7     AMF + ΔnifD          84.47
## 8     AMF + ΔnifD          89.47
## 9     AMF + ΔnifD          93.68
## 10    AMF + ΔnifD          91.58
## 11 AMF + ΔnifL:km          90.53
## 12 AMF + ΔnifL:km          80.79
## 13 AMF + ΔnifL:km          90.26
## 14 AMF + ΔnifL:km          92.63
## 15 AMF + ΔnifL:km          87.37
## 16       AMF + WT          92.37
## 17       AMF + WT          92.63
## 18       AMF + WT          90.53
## 19       AMF + WT          85.79
## 20       AMF + WT          86.58
##plotting
Plot_data <- ggplot(Myco_data, aes(x = Treatments, y = Mycorrhization)) +
  geom_boxplot() + geom_point(position = position_dodge(width = 0.8)) +
  ylim(60,120) 
Plot_data  + theme(axis.ticks = element_line(linetype = "blank"),
    panel.grid.major = element_line(linetype = "blank"),
    panel.grid.minor = element_line(linetype = "blank"),
    axis.text = element_text(family = "Times",
        size = 12, face = "bold", colour = "gray0"),
    axis.text.x = element_text(family = "Times",
        size = 12, colour = "gray0"), axis.text.y = element_text(family = "Times",
        size = 12, colour = "gray0")) +labs(x = NULL, y = "Mycorrhization%") + theme(axis.title = element_text(family = "Times",
    size = 12, face = "bold", colour = "gray0")) +
annotate("text", x = 2, y = 100, label = "****") + ##adding p-values manually
  annotate("text", x = 3, y = 100, label = "***") +
  annotate("text", x = 4, y = 100, label = "****")  + theme(panel.background = element_rect(fill = NA))
## Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family
## not found in Windows font database
## Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
## family not found in Windows font database

## Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
## family not found in Windows font database
## Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
## font family not found in Windows font database

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.