Description Usage Arguments Details Value Examples
It creates dataframes to be used in coplot
1 | make_coplot_df(df, vble, number_bins = 6, overlap = 0.5, equal_length = TRUE)
|
df |
dataframe |
vble |
faceting numeric variable |
number_bins |
integer; the number of conditioning intervals |
overlap |
numeric < 1; the fraction of overlap of the conditioning variables |
equal_length |
if 'overlap = 0' non overlaping intervals are produced all with same length if 'equal_length' is 'TRUE' (default) or with the same number of values otherwise. |
Adapted from here.
If 'overlap = 0' then 'ggplot2::cut_interval' is used to generate the intervals if 'equal_length = TRUE' (default), otherwise 'ggplot2::cut_number' is used. If 'overlap' is not zero, 'graphics::co.interval' is called.
a dataset to be used in the creation of coplots
1 | data_coplot <- make_coplot_df(rubber, hardness, 6, 3/4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.