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

Description Usage Arguments Details Value Author(s) See Also

View source: R/plot.data_agro_LF.R

Description

plot.data_agro_LF gets ggplot to describe the data

Usage

1
2
3
## S3 method for class 'data_agro_LF'
plot(x, plot_type = "boxplot",
  vec_variables = NULL, f_grid = NULL, ...)

Arguments

x

The data frame. It should come from format_data_PPBstats.data_agro_LF

plot_type

the type of plot you wish. It can be :

  • "barplot", where sd error are displayed

  • "boxplot"

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

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 into three elements:

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.