R: Plot time series

plot {sits} | R Documentation

## Plot time series

### Description

This is a generic function. Parameters depend on the specific type of input. See each function description for the required parameters:

- sits tibble: see `plot.sits`

- patterns: see `plot.patterns`

- SOM map: see `plot.som_map`

- classified time series: see `plot.predicted`

- raster cube: see `plot.raster_cube`

- classification probabilities: see `plot.probs_cube`

- classified image: see `plot.classified_image`

- SOM evaluate cluster: see `plot.som_evaluate_cluster`

In the case of time series, the plot function produces different plots based on the input data:

- "all years": Plot all samples from the same location together

- "together": Plot all samples of the same band and label together

The plot.sits function makes an educated guess of what plot is required, based on the input data. If the input data has less than 30 samples, it will default to "all years". If there are more than 30 samples, it will default to "together".

### Usage

    ## S3 method for class 'sits'
    plot(x, y, ...)

### Arguments

`x` | object of class "sits"
`y` | ignored
`...` | further specifications for plot.

### Value

The plot itself.

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

### Examples

    ## Not run:
    # Read a set of samples with 2 classes ("Cerrado" and "Pasture")
    # Plot all the samples together
    plot(cerrado_2classes)
    # Plot the first 20 samples (defaults to "allyears")
    plot(cerrado_2classes[1:20, ])

    ## End(Not run)

[Package sits version 0.15.1 Index]