Learn R Programming

dtwSat (version 0.2.8)

plotAccuracy: Plotting accuracy assessment

Description

Method for plotting accuracy assessment results.

Usage

plotAccuracy(
  x,
  perc = TRUE,
  conf.int = 0.95,
  time.labels = NULL,
  category.name = NULL,
  category.type = NULL
)

Value

A ggplot object.

Arguments

x

An object of class twdtwAssessment or twdtwCrossValidation.

perc

if TRUE shows the results in percent of area. Otherwise shows the area in the map units or km2 for no project raster. Default is TRUE.

conf.int

confidence level (0-1) for interval estimation of the population mean. For details see smean.cl.normal. Used if x is twdtwCrossValidation.

time.labels

a character or numeric for the time periods or NULL to aggregate all classified periods in the same plot. Default is NULL. Used if x is twdtwAssessment.

category.name

a character vector defining the class names. If NULL the class names in the object x are used. Default is NULL.

category.type

a character defining the categories type "numeric" or "letter", if NULL the class names are used. Default is NULL.

Author

Victor Maus, vwmaus1@gmail.com

References

Maus:2019dtwSat

Maus:2016dtwSat

See Also

twdtwAssessment and twdtwAssess

Examples

Run this code
if (FALSE) {

# See ?twdtwAssess and ?twdtwCrosValidate

plotAccuracy(x)

plotAccuracy(x, category.type="letter")

}

Run the code above in your browser using DataLab