sits_view {sits}R Documentation

Generic interface for visualization of data cube

Description

Uses mapview to visualize raster cube and classified images

Usage

sits_view(x, ...)

## S3 method for class 'raster_cube'
sits_view(x, ..., red, green, blue, time = 1, roi = NULL)

## S3 method for class 'classified_image'
sits_view(x, ..., map = NULL, time = 1, legend = NULL)

Arguments

x

object of class "raster_cube" or "classified image"

...

further specifications for sits_view.

red

band for red color.

green

band for green color.

blue

band for blue color.

time

temporal instances to be plotted.

roi

sf object giving a region of interest.

map

map to overlay (mapview object)

legend

named vector that associates labels to colors

Value

mapview object

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples


data_dir <- system.file("extdata/raster/mod13q1", package = "sits")

modis_cube <- sits_cube(
    source = "LOCAL",
    name = "modis_sinop",
    origin = "BDC",
    collection = "MOD13Q1-6",
    band = "NDVI",
    data_dir = data_dir,
    parse_info = c("X1", "X2", "tile", "band", "date")
)

# plot the data cube
sits_view(modis_cube, red = "EVI", green = "NDVI", blue = "EVI", time = 1)



[Package sits version 0.14.1 Index]