Description Usage Arguments Examples
View source: R/mermaid_boxplot.R
Plot box plots of fish belt biomass by a grouping variable group_var
(e.g. trophic group), separated by a supplied compare_var
(e.g. reef exposure).
1 2 3 4 5 6 7 8 | mermaid_plot_fish_belt_biomass(
.data,
group_var,
compare_var,
clean_values = TRUE,
clean_values_case = c("title", "sentence"),
replace_dashes = TRUE
)
|
.data |
Sample event data containing mean fish belt biomass, with variables indicated in |
group_var |
Variable to group by, e.g. |
compare_var |
Variable to compare by, e.g. |
clean_values |
Whether to clean the values in |
clean_values_case |
The desired clean values case (default is "title"). For example, if a value is "invertivore-mobile", title case converts it to "Invertivore Mobile" while sentence case converts it to "Invertivore mobile". If you don't want to replace dashes with spaces (e.g. get "Interivore-Mobile", set |
replace_dashes |
Whether to also remove dashes from values when cleaning them. Defaults to TRUE. |
1 2 3 4 5 6 | library(mermaidr)
events <- mermaid_search_projects(name = "XPDC Kei Kecil 2018") %>%
mermaid_get_project_data("fishbelt", "sampleevents")
events %>%
mermaid_plot_fish_belt_biomass(biomass_kgha_by_trophic_group_avg, reef_exposure)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.