PlotAvg: Visualize the average model fit result. It will show all...

View source: R/vis_fit.R

PlotAvgR Documentation

Visualize the average model fit result. It will show all points as well as the averaged model fit curve.

Description

Visualize the average model fit result. It will show all points as well as the averaged model fit curve.

Usage

PlotAvg(date_vec, vi_vec, avg_fit, model = "dblog7")

Arguments

date_vec

the date vector, be sure to convert the vector to "Date" format or use "yyyy-mm-dd" format string.

vi_vec

The vegetation index vector.

avg_fit

The model fit object returned by FitAvgModel().

model

A string indicating the model name. For now, only support "dblog7" and "dblog6" for the 7- and 6-parameter double-logistic functions.

Value

A plot showing the average model fit result.

Examples

## Not run: 
avg_dt <- FormatAvgData(landsatEVI2$date, landsatEVI2$evi2)
avg_fit <- FitAvgModel(landsatEVI2$date, landsatEVI2$evi2)
PlotAvg(landsatEVI2$date, landsatEVI2$evi2, avg_fit)

## End(Not run)

ncsuSEAL/Bayesian_LSP documentation built on Feb. 12, 2025, 4:59 a.m.