Description Usage Arguments Details Value See Also Examples
FUNCTION_DESCRIPTION
1 2 3 4 5  | 
in_rast | 
 Input raster object or file  | 
band | 
 PARAM_DESCRIPTION, Default: 1  | 
in_poly | 
 optional input polygon vector object or file to be overlayed on the plot, Default: NULL  | 
in_points | 
 optional input points vector object or file to be overlayed on the plot, Default: NULL  | 
background | 
 not used, Default: FALSE  | 
limits | 
 
  | 
tails | 
 
  | 
palette | 
 Palette to be used for colors (see   | 
legend_type | 
 "standard" or "custom" (see examples), Default: 'standard'  | 
col_outlow | 
 Color used to plot the values below the lower limit/tail. Can be a string corresponding to a valid "R" color or HEX representation, Default: 'gray10'  | 
col_outhigh | 
 Color used to plot the values below the lower limit/tail. Can be a string corresponding to a valid "R" color or HEX representation, Default: 'gray90'  | 
maxpixels | 
 
  | 
title | 
 
  | 
plot_now | 
 
  | 
... | 
 Any other arguments (?)  | 
DETAILS
OUTPUT_DESCRIPTION
layer
stack,quantile
levelplot
brewer.pal
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  | ## Not run: 
 library(sprawl)
 in_rast <- system.file("extdata", "gNDVI.tif", package = "sprawl.data")
 in_vect <- create_fishnet(in_rast, pix_for_cell = 150)
 # plot only the raster
 plot_rast(in_rast)
 # plot only the raster with custom legend
 plot_rast(in_rast, legend = "custom")
 # add a polygon and change the legend, palette and maxpixels
 plot_rast(in_rast,
           in_poly   = in_vect,
           tails     = c(0.1, 0.99),
           legend    = "custom",
           palette   = "RdYlBu" ,
           title     = "RapidEye - GNDVI",
           maxpixels = 10e5)
 in_rast <- raster::stack(system.file("extdata", "sprawl_EVItest.tif",
                                      package = "sprawl.data"))[[1:4]]
 plot_rast(in_rast)
 
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.