> 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.