Description Usage Arguments Value Examples
View source: R/stat_interval.R
Calculate quantiles of a tidy dataframe
1 | calc_quantiles(data, intervals, x_var = "x", y_var = "y", rename = T)
|
data |
A data frame with containing x and y columns, with several y values for every x |
intervals |
A list of intervals for which corresponding quantiles are desired. |
x_var |
A character string giving the name of the x variable |
y_var |
A character string giving the name of the y variable |
rename |
Logical. Indicates whether to retain existing variable name
or use |
A data frame containing x, y, and quantile columns (possibly renamed)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.