Learn R Programming

sits (version 1.1.0)

plot.predicted: Plot time series predictions

Description

Given a sits tibble with a set of predictions, plot them

Usage

# S3 method for predicted
plot(x, y, ..., bands = "NDVI", palette = "Harmonic")

Value

A plot object produced by ggplot2 showing the time series and its label.

Arguments

x

Object of class "predicted".

y

Ignored.

...

Further specifications for plot.

bands

Bands for visualization.

palette

HCL palette used for visualization in case classes are not in the default sits palette.

Author

Victor Maus, vwmaus1@gmail.com

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
if (sits_run_examples()) {
    # Retrieve the samples for Mato Grosso
    # train a tempCNN model
    ml_model <- sits_train(samples_modis_4bands, ml_method = sits_tempcnn)
    # classify the point
    bands_model <- sits_bands(ml_model)
    point_4bands <- sits_select(point_mt_6bands, bands = bands_model)
    point_class <- sits_classify(point_4bands, ml_model)
    plot(point_class)
}

Run the code above in your browser using DataLab