cond_heatmap | R Documentation |
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",
...
)
data |
a |
x |
|
n |
|
min_bin_size |
|
overlap |
|
bins |
|
ncols |
The number of column to be used in the layout. |
auto_fill |
If |
show_bins |
If |
fill |
The color used for categorical variables. |
low |
The color used for low values in the heatmap. |
high |
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()
cond_heatmap(
iris,
x = "Petal.Length",
n = 12
)
data("diamonds", package="ggplot2")
cond_heatmap(
diamonds,
x = "carat",
bins <- c(100,100)
)[6:8]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.