File:ScaleFillViridisDiscrete.png
Appearance
ScaleFillViridisDiscrete.png (600 × 471 pixels, file size: 22 KB, MIME type: image/png)
Summary
See https://r-graph-gallery.com/79-levelplot-with-ggplot2.html
library(ggplot2)
# library(hrbrthemes)
# Dummy data
x <- LETTERS[1:20]
y <- paste0("var", seq(1,20))
data <- expand.grid(X=x, Y=y)
data$Z <- runif(400, 0, 5)
library(viridis)
ggplot(data, aes(X, Y, fill= Z)) +
geom_tile() +
scale_fill_viridis(discrete=FALSE)
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 09:08, 30 August 2022 | 600 × 471 (22 KB) | Brb (talk | contribs) | See https://r-graph-gallery.com/79-levelplot-with-ggplot2.html <pre> library(ggplot2) # library(hrbrthemes) # Dummy data x <- LETTERS[1:20] y <- paste0("var", seq(1,20)) data <- expand.grid(X=x, Y=y) data$Z <- runif(400, 0, 5) library(viridis) ggplot(data, aes(X, Y, fill= Z)) + geom_tile() + scale_fill_viridis(discrete=FALSE) </pre> |
You cannot overwrite this file.
File usage
The following page uses this file:
