Description Usage Arguments Details Value See Also Examples
Plot fuzzy metrics given based on expert BCG levels
1 2 |
met_in |
input |
scr_in |
input |
met |
chr string of metric to plot |
cols |
chr string of palette for plot colors, from |
met_val |
numeric value of metric to show on plot |
sdchg |
optional list passed to |
widths |
numeric vector indicating widths of each of four plots, passed to |
The input scr_in
data has two columns labelled station_code
and scr
. The station codes should match those in met_in
. The scr
values for each station can be numeric or character string BCG levels that represent qualitative rankings.
A ggplot
object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# coral metrics
met_in <- get_stony_mets(crl_dem)
# bcg scores for each station
station_code <- c(1:5)
scr <- c(2, 5, 3, 2, 4)
scr_in <- data.frame(station_code, scr)
# plot
plot_fuzz(met_in, scr_in, met = 'tot_rich')
# plot, manual change of standard deviation
sdchg <- list(tot_rich = c(2, 2, 2, 2))
plot_fuzz(met_in, scr_in, met = 'tot_rich', sdchg = sdchg)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.