plot.data_agro_SR gets ggplot to describe the data

# S3 method for data_agro_SR
plot(x, mean_comparisons = NULL,
  plot_type = "boxplot", heritability = FALSE, vec_variables = NULL,
  nb_parameters_per_plot_x_axis = 5, nb_parameters_per_plot_in_col = 5,
  ...)

Arguments

x

The data frame. It should come from format_data_PPBstats.data_agro_SR

mean_comparisons

Output from mean_comparisons.

plot_type

the type of plot you wish. It can be :

  • "barplot", where sd error are displayed

  • "boxplot"

  • "interaction"

heritability

if TRUE, display estimated heritability

vec_variables

vector of variables to display

nb_parameters_per_plot_x_axis

the number of parameters per plot on x_axis arguments

nb_parameters_per_plot_in_col

the number of parameters per plot for in_col arguments

...

further arguments passed to or from other methods

Value

The function returns a list with ggplot objects for each variable of vec_variables divided then for each element expe_id. When argument mean_comparison is not NULL, it returns a plot with stars of significant differences.

Details

S3 method. See the book for more details here.

See also