continuous_config | R Documentation |
The continuous_config()
function creates a configuration object for
handling continuous variables in Theseus plots. It controls how continuous
data is binned into discrete categories for contribution calculations and
visualization.
continuous_config(
n = 10L,
pretty = TRUE,
split = c("count", "width", "rate"),
breaks = NULL
)
n |
integer. Number of bins to create for a continuous variable. |
pretty |
logical. If TRUE, use pretty breaks for bin edges. |
split |
string. Method for binning continuous variables. Options are:
|
breaks |
numeric vector specifying custom break points. |
A list containing binning parameters (n
, pretty
,
split
, breaks
) to be used in plotting or contribution
calculations for continuous variables.
library(TheseusPlot)
continuous_config(n = 5, pretty = FALSE, split = "rate")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.