plot_choc: plot_choc Plot the result of choc analysis

View source: R/plot_choc.R

plot_chocR Documentation

plot_choc Plot the result of choc analysis

Description

plot_choc Plot the result of choc analysis

Usage

plot_choc(
  mychoc,
  ivar = c(1, 2),
  palette = c("green", "palegreen1", "pink1", "red")
)

Arguments

mychoc

a list returned by estimate_confidence

ivar

the two variables that should be plotted

palette

a color palette (4 colors, could be hexadecimal or names)

Value

a ggplot object

Details

red means that there is a significant decrease of occurence of the association, pale red stands for non significant trend pale green for non significant positive trend and green for significant positive trend

Examples

#example of results provided by estimate_confidence
data(res_confid)
g<-plot_choc(res_confid)
print(g)


Irstea/chocR documentation built on June 12, 2022, 8:28 p.m.