Plot rasters in ggplot with greyscale
1 2 |
x |
raster |
layer |
layername |
maxpixels |
Integer. Maximal number of pixels to sample |
lowColor |
Character. Color for lowest value |
highColor |
Character. Color for highest value |
legendName |
Character. Layer name |
ggObj |
Logical. Return a ggplot2 object (TRUE) or just the data.frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.