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

Description Usage Arguments Details Value Author(s) See Also

View source: R/plot.data_agro.R

Description

plot.data_agro gets ggplot to describe the data

Usage

1
2
3
4
5
## S3 method for class 'data_agro'
plot(x, plot_type = "boxplot", x_axis = NULL,
  in_col = NULL, vec_variables = NULL,
  nb_parameters_per_plot_x_axis = 5, nb_parameters_per_plot_in_col = 5,
  labels_on = NULL, labels_size = 4, pie_size = 0.2, zoom = 6, ...)

Arguments

x

The data frame. It should come from format_data_PPBstats.data_agro

plot_type

the type of plot you wish. It can be :

  • "pam" for presence abscence matrix that represent the combinaison of germplasm x location

  • "histogramm"

  • "barplot", where sd error are displayed

  • "boxplot"

  • "interaction"

  • "biplot"

  • "radar"

  • "raster"

  • "map"

x_axis

factor displayed on the x.axis of a plot. "date_julian" can be choosen: it will display julian day for a given variable automatically calculated from format_data_PPBstats(). This is possible only for plot_type = "histogramm", "barplot", "boxplot" and "interaction".

in_col

factor displayed in color of a plot

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

labels_on

factor to display for plot_type = "biplot"

labels_size

size of the label for plot_type = "biplot" and "radar"

pie_size

when plot_type = "map" and vec_variables is not NULL, size of the pie

zoom

zoom of the text on the map, see ?PPBstats::pmap for more details.

...

further arguments passed to or from other methods

Details

S3 method. See the book for more details here.

Value

Each list is divided in several lists according to values of nb_parameters_per_plot_x_axis and nb_parameters_per_plot_in_col except for plot_type = "map".

Author(s)

Pierre Riviere

See Also


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