plot.data_agro_SR: Plot agro object from format_data_PPBstats.data_agro_SR()

Description Usage Arguments Details Value Author(s) See Also

View source: R/plot.data_agro_SR.R

Description

plot.data_agro_SR gets ggplot to describe the data

Usage

1
2
3
4
5
## S3 method for class '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

Details

S3 method. See the book for more details here.

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.

Author(s)

Pierre Riviere

See Also


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.