Learn R Programming

sits (version 1.1.0)

plot: 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

  • SOM evaluate cluster: see plot.som_evaluate_cluster

  • classified time series: see plot.predicted

  • raster cube: see plot.raster_cube

  • random forest model: see plot.rfor_model

  • xgboost model: see plot.xgb_model

  • torch ML model: see plot.torch_model

  • classification probabilities: see plot.probs_cube

  • model uncertainty: see plot.uncertainty_cube

  • classified image: see plot.classified_image

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 sits
plot(x, y, ...)

Value

A series of plot objects produced by ggplot2 showing all time series associated to each combination of band and label, and including the median, and first and third quartile ranges.

Arguments

x

Object of class "sits"

y

Ignored.

...

Further specifications for plot.

Author

Gilberto Camara, gilberto.camara@inpe.br