[R] Mapping 2D to 3D
Abby Spurdle
@purd|e@@ @end|ng |rom gm@||@com
Mon Sep 21 07:07:09 CEST 2020
> I was looking at this example which uses geom_contour():
>
> ggvolcano = volcano %>%
> reshape2::melt() %>%
> ggplot() +
> geom_tile(aes(x=Var1,y=Var2,fill=value)) +
> geom_contour(aes(x=Var1,y=Var2,z=value),color="black") +
> scale_x_continuous("X",expand = c(0,0)) +
> scale_y_continuous("Y",expand = c(0,0)) +
> scale_fill_gradientn("Z",colours = terrain.colors(10)) +
> coord_fixed()
> print(ggvolcano)
Yesturday, I watched the movie Tenet.
WARNING: SPOILER ALERT
Everything's going forwards and backwards at the same time.
This code reminds me of that movie.
More information about the R-help
mailing list