View source: R/visualize-basics.R
get_limits | R Documentation |
Useful for, for example, plotting of distribution.
get_limits(data, measure, by = NULL, hdi.prob = 0.99, min = NULL, max = NULL)
data |
A 'tibble' or 'data.frame' that contains a 'measure'. |
measure |
Name of variable in 'data' for which limits are sought. |
by |
Optionally, a grouping variable. If not NULL, limits will be returned for each level of this variable. (default: 'NULL') |
hdi.prob |
Proportion of MCMC samples that are within the limits. (default: .99) |
min , max |
If min or max are specified, then those limits are returned instead of the HDI-based limits. |
Vector with two values.
TBD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.