R/plot.data_agro_HA.R
plot.data_agro_HA.Rd
plot.data_agro_HA
gets ggplot to describe the data
# S3 method for data_agro_HA plot(x, plot_type = "boxplot", vec_variables = NULL, f_grid = NULL, ...)
x | The data frame. It should come from |
---|---|
plot_type | the type of plot you wish. It can be :
|
vec_variables | vector of variables to display |
f_grid | facet grid to add, possible value is "year" |
... | further arguments passed to or from other methods |
The function returns a list with ggplot objects for each variable of vec_variables divided into three elements:
home_away_merged, i.e. a single plot with version for all germplasm merged
home_away_merged_per_germplasm, i.e. a single plot with version for each germplasm
home_away_per_germplasm, i.e. a list of plots for each germplasm with all version separated
When argument mean_comparison is not NULL, it returns a plot with stars of significant differences.
S3 method. See the book for more details here.