create_bio_belowground_barplot | R Documentation |
code to create plot p : bio and belowground
create_bio_belowground_barplot(
type = c("grouped", "stacked"),
yvar_name = "maxsplines",
plottitle = model_names_selection$modelname,
errorbar = F,
pylim = c(0, 0.44)
)
type |
is either grouped, where turnover and nestedness components are shown in individual bars, or "stacked", where turnover and nestedness components are stacked on top of each other. |
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.