create_abio_barplot: create plot abio

View source: R/plot_gdm_FUN.R

create_abio_barplotR Documentation

create plot abio

Description

code to create plot abio.

Usage

create_abio_barplot(
  type = c("grouped", "stacked"),
  yvar_name = "maxsplines",
  errorbar = F,
  pylim = c(0, 0.44)
)

Arguments

type

is in "grouped" (turnover and nestedness are shown as individual bars) or in "stacked" (turnover and nestedness are stacked on top of each other). This does not matter for abiotic plot, but is kept in order to make clear it's the same code for abiotic, above and belowground.

yvar_name

character vector defining the column name of y values. Defaults to "maxsplines" as created in 'create_restab0'.

errorbar

logical T or F. If T, error bars (standard errors) are shown. The name of the errorbar is assumed to be "se_" yvar_name as in 'paste0("se_", yvar_name)' Note that error bars only look good if type is "grouped"

pylim

the limits of the y axis. defaults to 0 and 0.44. Note that if errorbars are plotted, it might be better to set them to ylim = c(-0.22, 0.44)


allanecology/multiFunBetadivLuiGDM documentation built on Nov. 12, 2023, 6:16 a.m.