cond_heatmap
shows the conditional distribution of the y
of variables for each quantile bin of x
. It is an alternative to
cond_boxplot()
, fine graining the distribution per qbin()
.
cond_barplot()
highlights the median/mean of the quantile bins, while
funq_plot()
highlights the functional dependency of the median.
cond_heatmap(
data,
x = NULL,
n = 100,
min_bin_size = NULL,
overlap = NULL,
bins = c(n, 25),
ncols = NULL,
auto_fill = FALSE,
show_bins = FALSE,
fill = "#2f4f4f",
low = "#eeeeee",
high = "#2f4f4f",
...
)
a data.frame
to be binned
character
variable name used for the quantile binning
integer
number of quantile bins.
integer
minimum number of rows/data points that should be
in a quantile bin. If NULL it is initially sqrt(nrow(data))
logical
if TRUE
the quantile bins will overlap. Default value will be
FALSE
.
integer
vector with the number of bins to use for the x and y axis.
The number of column to be used in the layout.
If TRUE
, use a different color for each category.
If TRUE
, show the bin boundaries on the x-axis.
The color used for categorical variables.
The color used for low values in the heatmap.
The color used for high values in the heatmap.
Additional arguments to pass to the plot functions
A list
of ggplot objects.
Other conditional quantile plotting functions:
cond_barplot()
,
cond_boxplot()
,
funq_plot()