heatmap_legend | R Documentation |
Changes to details of how heatmap legends are drawn to better match the rest of the custom theme
heatmap_legend(plot_scale = 1, font = "Roboto Regular")
plot_scale |
Scaling factor for the plot components as a whole. A value of 1 corresponds to a font size of 12 pt and a figure size of 6" by 4" |
font |
Font family to be used in the theme, given as a character vector.
The font must be included in the theme fonts; use
|
library(ggplot2)
p <- ggplot(faithfuld, aes(waiting, eruptions, fill = density)) +
geom_raster() +
scale_fill_distiller(palette = "YlGn", guide = heatmap_legend())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.