View source: R/theme_heatmap.R
theme_heatmap | R Documentation |
theme_heatmap
produces a ggplot heatmap plot from a data.frame
theme_heatmap(xaxis_labels = TRUE, yaxis_labels = TRUE, ...)
xaxis_labels |
logical whether axis labels are printed, default=TRUE |
yaxis_labels |
logical whether axis labels are printed, default=TRUE |
... |
Other arguments passed on to |
This is a ggplot theme for heatmap plots. For categorical axes, it is theme_void with x and y axis labels It also has grey dotted grid lines and the legend is place at the top
If both x and y variables are continuous, theme_minimal is returned
ggplot theme object
set.seed(20962)
test_data_cat <- data.frame(x = factor(rep(LETTERS[1:10], 10)),
y = factor(rep(1:10, each = 10), levels = 10:1),
size = sample(20:100, 100, replace = TRUE),
fill = runif(100))
cat_heatmap_plot <- heatmap_plot(test_data_cat)
cat_heatmap_plot + theme_heatmap() + theme(axis.text.x = element_text(angle = 0, face = 'italic'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.