Description Usage Arguments Value Examples
This function generates a bar plot showing represent the simulation results
1 2 3 4 5 6 7 8 9 10 11 12 | barplot_model_results(
x,
name_x,
y,
name_y,
group,
group_name,
levels_order,
y_min,
y_max,
title_legend
)
|
x |
a numeric vector especifing the x factor |
name_x |
a character specifing the x axis name |
y |
a numeric vector especifing the y factor |
name_y |
a character specifing the y axis name |
group |
a character vector specifying the grouping factor |
group_name |
a character specifying the group factor name |
levels_order |
a character vector specifying the grouping factor order for the legend |
y_min |
a number especifying the manimum of the y axis |
y_max |
a number especifying the maximum of the y axis |
title_legend |
a character specifying the legend title |
a bar plot
1 2 3 4 | y<-c(sum(plot_data$Harvest),sum(plot_data$Latent_removed),sum(plot_data$Sporulated_removed))
x<-c("Healthy","Latent","Sporulated")
group<-x
p4<-barplot_model_results(x,"Disease status",y,"Total pods harvest",group,"Disease status",c("Healthy","Latent","Sporulated"),0,max(y)+0.01*max(y), "Disease statust")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.