Plot RGB raster cube
# S3 method for vector_cube
plot(
x,
...,
band = NULL,
red = NULL,
green = NULL,
blue = NULL,
tile = x[["tile"]][[1]],
dates = NULL,
seg_color = "yellow",
line_width = 0.3,
palette = "RdYlGn",
rev = FALSE,
scale = 1,
first_quantile = 0.02,
last_quantile = 0.98,
max_cog_size = 1024
)
A plot object with an RGB image or a B/W image on a color scale using the palette
Object of class "raster_cube".
Further specifications for plot.
Band for plotting grey images.
Band for red color.
Band for green color.
Band for blue color.
Tile to be plotted.
Dates to be plotted.
Color to show the segment boundaries
Line width to plot the segments boundary (in pixels)
An RColorBrewer palette
Reverse the color order in the palette?
Scale to plot map (0.4 to 1.5)
First quantile for stretching images
Last quantile for stretching images
Maximum size of COG overviews (lines or columns)
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.1",
data_dir = data_dir
)
# Segment the cube
segments <- sits_segment(
cube = cube,
output_dir = tempdir(),
multicores = 2,
memsize = 4
)
# plot NDVI band of the second date date of the data cube
plot(segments, band = "NDVI", date = sits_timeline(cube)[1])
}
Run the code above in your browser using DataLab