Description Usage Arguments Value
View source: R/specify_range.R
Given a data frame with values corresponding to different groups, defines a data frame "range" with min and max values for each group such that the real data can be centered around the midpoint but all subplots cover the same range (1 unit on plot A = 1 unit on plot B).
1 2 3 4 5 6 7 | specify_range(
df,
group_col,
value_col,
tick_precision = NA,
pfl_is_long = FALSE
)
|
df |
a data frame with columns for the group and corresponding values |
group_col |
name of the group column |
value_col |
name of the values column |
tick_precision |
round range to nearest X, inclusive (e.g., 0.1, 0.5, etc.) |
pfl_is_long |
logical defaults to FALSE to maintain separate ranges for Long and Plainfield lakes. If TRUE, forces plainfield to use range for long. |
range, a data frame with a column for "group" and another column for "value" (real names: group_col and value_col) with min and max values for each group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.