add_heatmap | R Documentation |
Add heatmap
add_heatmap(
plot,
scale = c("none", "row", "column"),
rotate_labels = 90,
rasterize = FALSE,
rasterize_dpi = 300,
...
)
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 |
add_heatmap()
supports rasterization. See examples and Advanced plotting.
A tidyplot
object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.