Usage
cd_plot(x, ...)
"cd_plot"(x, y, plot = TRUE, ylab_tol = 0.05, bw = "nrd0", n = 512, from = NULL, to = NULL, main = "", xlab = NULL, ylab = NULL, margins = c(5.1, 4.1, 4.1, 3.1), gp = gpar(), name = "cd_plot", newpage = TRUE, pop = TRUE, return_grob = FALSE, ...)
"cd_plot"(formula, data = list(), plot = TRUE, ylab_tol = 0.05, bw = "nrd0", n = 512, from = NULL, to = NULL, main = "", xlab = NULL, ylab = NULL, margins = c(5.1, 4.1, 4.1, 3.1), gp = gpar(), name = "cd_plot", newpage = TRUE, pop = TRUE, return_grob = FALSE, ...)
Arguments
x
an object, the default method expects either a single numerical variable.
y
a "factor"
interpreted to be the dependent variable
formula
a "formula"
of type y ~ x
with a single dependent "factor"
and a single numerical explanatory variable.
data
an optional data frame.
plot
logical. Should the computed conditional densities be plotted?
ylab_tol
convenience tolerance parameter for y-axis annotation.
If the distance between two labels drops under this threshold, they are
plotted equidistantly.
main, xlab, ylab
character strings for annotation
gp
a "gpar"
object controlling the grid graphical
parameters of the rectangles. It should specify in particular a vector of
fill
colors of the same length as levels(y)
. The default is
to call gray.colors
. name
name of the plotting viewport.
return_grob
logical. Should a snapshot of the display be
returned as a grid grob?
pop
logical. Should the viewport created be popped?