make_coplot_df: Creation of tibbles por coplots

Description Usage Arguments Details Value Examples

View source: R/gg_coplot.R

Description

It creates dataframes to be used in coplot

Usage

1
make_coplot_df(df, vble, number_bins = 6, overlap = 0.5, equal_length = TRUE)

Arguments

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.

Details

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.

Value

a dataset to be used in the creation of coplots

Examples

1
data_coplot <- make_coplot_df(rubber, hardness, 6, 3/4)

ggcleveland documentation built on Aug. 16, 2021, 9:07 a.m.