R: Generic interface for visualization of data cube

sits_view {sits} | R Documentation

## Generic interface for visualization of data cube

### 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 = "default")

    ## S3 method for class 'raster_cube'
    sits_view(
      x,
      ...,
      red,
      green,
      blue,
      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
`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

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

    modis_cube <- sits_cube(
        source = "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.15.0 Index]