ggplot_mixture1: Barplot for the comparison of the mixture vs its components &...

Description Usage Arguments Value Author(s) See Also

View source: R/ggplot_mixture.R

Description

Barplot for the comparison of the mixture vs its components & the mean of its components

Usage

1
2
ggplot_mixture1(res_model, melanges_PPB_mixture, variable,
  plot.type = "comp.in.farm", nb_parameters_per_plot = 8)

Arguments

res_model

output from the PPBstats::analyse.outputs function

variable

the variable to study

plot.type

the type of plot wanted. Can be "comp.in.farm" to compare the mixtures to each of its components in a farm ; "mixVScomp" to compare all mixtures to all components ; "mix.comp.distribution" ; "mix.gain.distribution" to plot the distribution of the difference between mixtures and the mean of its components

nb_parameters_per_plot

the number of parameters per plot

farmers_data

output from the shinemas2R::get.data function, with argument query type == "data.mixture.1"

Value

A list containing, for each environment and mixture, the barplots ("bp") and the tables ("Tab")

Author(s)

Gaelle Van Frank

See Also

shinemas2R::get.data


priviere/PPBformations documentation built on Oct. 17, 2017, 11:24 a.m.