add_heatmap {tidyplots} | R Documentation |
Add heatmap
Description
Add heatmap
Usage
add_heatmap(
plot,
scale = c("none", "row", "column"),
rotate_labels = 90,
rasterize = FALSE,
rasterize_dpi = 300,
...
)
Arguments
plot |
A |
scale |
Whether to compute row z scores for |
rotate_labels |
Degree to rotate the x-axis labels. Defaults to |
rasterize |
If |
rasterize_dpi |
The resolution in dots per inch (dpi) used for rastering
the layer if |
... |
Arguments passed on to the |
Details
-
add_heatmap()
supports rasterization. See examples and Advanced plotting.
Value
A tidyplot
object.
Examples
climate %>%
tidyplot(x = month, y = year, color = max_temperature) %>%
add_heatmap()
# Calculate row-wise z score
climate %>%
tidyplot(x = month, y = year, color = max_temperature) %>%
add_heatmap(scale = "row")
# Calculate column-wise z score
climate %>%
tidyplot(x = month, y = year, color = max_temperature) %>%
add_heatmap(scale = "column")
# Rasterize heatmap
climate %>%
tidyplot(x = month, y = year, color = max_temperature) %>%
add_heatmap(rasterize = TRUE, rasterize_dpi = 20)
[Package tidyplots version 0.2.0 Index]