PlotAvg | R Documentation |
Visualize the average model fit result. It will show all points as well as the averaged model fit curve.
PlotAvg(date_vec, vi_vec, avg_fit, model = "dblog7")
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 |
model |
A string indicating the model name. For now, only support "dblog7" and "dblog6" for the 7- and 6-parameter double-logistic functions. |
A plot showing the average model fit result.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.