Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 12578

a graphical technique for representing a data set. Usually showing the relationship between two or more variables.

6 votes
1 answer
4k views

Plotting multiple raster stacks with rasterVis::gplot and ggplot2::facet_wrap

, runif(ncell(r), min = -10000, max = 10000))) r_stack <- stack(rr) crs(r_stack) <- "+proj=utm +zone=43 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0" prj <- crs(r_stack) plot … r_stack and call geom_raster to plot s_stack on top gplot(r_stack) + geom_raster(aes(fill = value)) + facet_wrap(~ variable) + scale_fill_gradientn(colours = rev(terrain.colors( …
derelict's user avatar
  • 1,455