View source: R/ggplot-geom-rect3d.R
scale_z_continuous | R Documentation |
z scales
scale_z_continuous(name = waiver(), ..., range = c(0.1, 1), guide = "none")
scale_z_binned(name = waiver(), ..., range = c(0.1, 1), guide = "none")
scale_z_discrete(...)
scale_z_ordinal(name = waiver(), ..., range = c(0.1, 1), guide = "none")
name |
The name of the scale. Used as the axis or legend title. If
|
... |
Other arguments passed on to
|
range |
Output range of z values. Must larger than 0. |
guide |
A function used to create a guide or its name. See
|
geom_tile3d()
/geom_rect3d()
set.seed(7)
mat <- matrix(runif(100), 10)
rownames(mat) <- LETTERS[1:10]
colnames(mat) <- letters[1:10]
ggheatmap(mat,
filling = FALSE,
theme = theme(
legend.box.spacing = unit(10, "mm"),
plot.margin = margin(t = 15, unit = "mm")
)
) +
geom_tile3d(aes(fill = value, z = value, width = 0.8, height = 0.8)) +
scale_z_continuous(range = c(0.2, 1)) +
coord_cartesian(clip = "off")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.