qbin_heatmap | R Documentation |
qbin_heatmap
shows the distribution of the y
of variables for each quantile bin of x
. It is an alternative to
qbin_boxplot()
, fine graining the distribution per qbin()
.
qbin_barplot()
highlights the median/mean of the quantile bins, while
qbin_heatmap(
data,
x = NULL,
n = 25,
min_bin_size = NULL,
overlap = NULL,
bins = c(n),
type = c("gradient", "size"),
ncols = NULL,
auto_fill = FALSE,
fill = "#2f4f4f",
low = "#eeeeee",
high = "#2f4f4f",
...
)
data |
a |
x |
|
n |
|
min_bin_size |
|
overlap |
|
bins |
|
type |
The type of heatmap to use. Either "gradient" or "size". |
ncols |
The number of column to be used in the layout. |
auto_fill |
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 qbin plotting functions:
qbin_barplot()
,
qbin_boxplot()
,
qbin_lineplot()
qbin_heatmap(
iris,
"Sepal.Length",
auto_fill = TRUE
)
qbin_heatmap(
iris,
"Sepal.Length",
auto_fill = TRUE,
type = "size"
)
qbin_heatmap(
iris,
"Sepal.Length",
overlap = TRUE,
auto_fill = TRUE
)
data("diamonds", package="ggplot2")
qbin_heatmap(
diamonds[c(1,7:9)],
x = "price",
n = 150
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.