-
-
Save gtgrthrst/23a2c4ff5a5e9f47e450c5ec5857cab2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rayshader) | |
library(ggsci) # 修改配色 | |
p1 <- ggplot(diamonds, aes(x, depth)) + | |
stat_density_2d(aes(fill = stat(nlevel)), | |
geom = "polygon", | |
n = 100,bins = 10,contour = TRUE) + | |
theme(axis.title=element_blank(), | |
axis.text=element_blank(), | |
axis.ticks=element_blank() | |
) + scale_fill_viridis_c() | |
p1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment