Description Usage Arguments Examples
View source: R/mermaid_boxplot.R
Plot box plots of Benthic PIT percent cover by a grouping variable group_var
(e.g. benthic category), separated by a supplied compare_var
(e.g. management rules).
1 2 3 4 5 6 7 8 | mermaid_plot_benthic_pit_percent_cover(
.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("benthicpit", "sampleevents")
events %>%
mermaid_plot_benthic_pit_percent_cover(percent_cover_by_benthic_category_avg, reef_exposure)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.