plot.raster_cube | R Documentation |
Plot RGB raster cube
## S3 method for class 'raster_cube'
plot(
x,
...,
band = NULL,
red = NULL,
green = NULL,
blue = NULL,
tile = x$tile[[1]],
date = NULL,
palette = "RdYlGn",
rev = FALSE,
tmap_options = NULL
)
x |
Object of class "raster_cube". |
... |
Further specifications for plot. |
band |
Band for plotting grey images. |
red |
Band for red color. |
green |
Band for green color. |
blue |
Band for blue color. |
tile |
Tile to be plotted. |
date |
Date to be plotted. |
palette |
An RColorBrewer palette |
rev |
Reverse the color order in the palette? |
tmap_options |
Named list with optional tmap parameters max_cells (default: 1e+06) scale (default: 1.0) graticules_labels_size (default: 0.7) legend_title_size (default: 1.0) legend_text_size (default: 1.0) legend_bg_color (default: "white") legend_bg_alpha (default: 0.5) |
A plot object with an RGB image or a B/W image on a color scale using the pallete
To see which colors are supported, please run sits_colors()
Use scale
parameter for general output control.
If required, then set the other params individually
Gilberto Camara, gilberto.camara@inpe.br
if (sits_run_examples()) {
# create a data cube from local files
data_dir <- system.file("extdata/raster/mod13q1", package = "sits")
cube <- sits_cube(
source = "BDC",
collection = "MOD13Q1-6",
data_dir = data_dir
)
# plot NDVI band of the second date date of the data cube
plot(cube, band = "NDVI", date = sits_timeline(cube)[1])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.