create_abio_barplot | R Documentation |
code to create plot abio.
create_abio_barplot(
type = c("grouped", "stacked"),
yvar_name = "maxsplines",
errorbar = F,
pylim = c(0, 0.44)
)
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.