Description Usage Arguments Details Value Examples
Bins data for according to a given list.
1 2 |
data |
The data to bin. Generally a data table. |
by |
Character; The name of of our output column that we are binning. |
range |
A vector of length two that defines the max and min value of the scale. |
bins |
Vector; Either a number indicating the number of bins, or a vector containing the locations where the bins should be cut. |
scale |
List; should be length 4, in the format c(lowest, midpoint (white), one-bin-above-midpoint, highest). |
ascending |
logical; do increasing values indicate a positive trend? |
bin_name |
Character; Name of column to be created that contains bin data |
Currently provides scales and colors for reliability, safeyield, resilience,
and vulnerability. To access, use metric="reliability"
,
metric="safeyield"
, etc.
a list x
. x$data
returns the data frame with a new
column containing the bins, x$colors
contains the corresponding
color scale.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.