View source: R/funky_heatmap.R
funky_heatmap | R Documentation |
Allows generating heatmap-like visualisations for benchmark data frames. Funky heatmaps can be fine-tuned by providing annotations of the columns and rows, which allows assigning multiple palettes or geometries or grouping rows and columns together in categories.
funky_heatmap(
data,
column_info = NULL,
row_info = NULL,
column_groups = NULL,
row_groups = NULL,
palettes = NULL,
legends = NULL,
position_args = position_arguments(),
scale_column = TRUE,
add_abc = TRUE,
col_annot_offset,
col_annot_angle,
expand
)
data |
A data frame with items by row and features in the columns.
Must contain one column named |
column_info |
A data frame describing which columns in
|
row_info |
A data frame describing the rows of
|
column_groups |
A data frame describing of how to group the columns
in
|
row_groups |
A data frame describing of how to group the rows
in
|
palettes |
A named list of palettes. Each entry in
|
legends |
A list of legends to add to the plot. Each entry in
|
position_args |
Sets parameters that affect positioning within a
plot, such as row and column dimensions, annotation details, and the
expansion directions of the plot. See |
scale_column |
Whether or not to apply min-max scaling to each numerical column. |
add_abc |
Whether or not to add subfigure labels to the different columns groups. |
col_annot_offset |
DEPRECATED: use |
col_annot_angle |
DEPRECATED: use |
expand |
DEPRECATED: use |
A ggplot. .$width
and .$height
are suggested dimensions for
storing the plot with ggplot2::ggsave()
.
library(tibble, warn.conflicts = FALSE)
data("mtcars")
data <- rownames_to_column(mtcars, "id")
funky_heatmap(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.