View source: R/set_boundary_colors.R
make_so_highlight_key | R Documentation |
Make a key for highlighted S/O values in a table or graph
make_so_highlight_key(highlight_so_cutoffs, highlight_so_colors)
highlight_so_cutoffs |
cutoffs for highlighting simulated-to-observed
ratios. Anything that is above those values or below the inverse of those
values will be highlighted. Acceptable input for, say, highlighting values
that are > 125% or < 80% of the observed and also, with a second color,
values that are > 150% or < 66% would be: |
highlight_so_colors |
optionally specify a set of colors to use for
highlighting S/O values outside the limits you specified with
.
If you do specify your own bespoke colors, you'll need to make sure that
you supply one color for every value in |
a flextable for use as a key for which colors mean what S/O cutoff
make_so_highlight_key(highlight_so_colors = "green to red",
highlight_so_cutoffs = c(1, 1.25, 1.5, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.