sits_view {sits}R Documentation

View data cubes and samples in leaflet

Description

Uses leaflet to visualize time series, raster cube and classified images

Usage

sits_view(x, ...)

## S3 method for class 'sits'
sits_view(x, ..., legend = NULL, palette = "Harmonic")

## S3 method for class 'raster_cube'
sits_view(
  x,
  ...,
  band = NULL,
  red = NULL,
  green = NULL,
  blue = NULL,
  tile = 1,
  times = c(1),
  class_cube = NULL,
  legend = NULL,
  palette = "default"
)

## S3 method for class 'classified_image'
sits_view(x, ..., tile, legend = NULL, palette = "default")

Arguments

x

object of class "sits", "raster_cube" or "classified image"

...

further specifications for sits_view.

legend

named vector that associates labels to colors

palette

palette provided in the configuration file

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 (in case of a multi-tile cube).

times

temporal instances to be plotted.

class_cube

classified cube to be overlayed on top on image

Value

leaflet object

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples


# view a collection of time series
sits_view(samples_modis_4bands)

# view a temporal instance of a cube

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

modis_cube <- sits_cube(
    source = "BDC",
    collection = "MOD13Q1-6",
    band = c("NDVI", "EVI"),
    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.16.2 Index]