lsat_plot_trend_hist: Create a histogram summarizing relative temporal changes in a...

View source: R/lsat_plot_trend_hist.R

lsat_plot_trend_histR Documentation

Create a histogram summarizing relative temporal changes in a spectral index across all sample sites.

Description

Create a histogram summarizing relative temporal changes in a spectral index across all sample sites.

Usage

lsat_plot_trend_hist(dt, xlim = c(-30, 30))

Arguments

dt

A data.table output from lsat_calc_trend()

xlim

Numeric vector specifying the minimum and maximum values for the histogram x-axis.

Value

A histogram generated by ggplot2

Examples

data(lsat.example.dt)
lsat.dt <- lsat_format_data(lsat.example.dt)
lsat.dt <- lsat_clean_data(lsat.dt)
lsat.dt <- lsat_calc_spectral_index(lsat.dt, 'ndvi')
# lsat.dt <- lsat_calibrate_rf(lsat.dt, band.or.si = 'ndvi', write.output = F)
lsat.pheno.dt <- lsat_fit_phenological_curves(lsat.dt, si = 'ndvi') 
lsat.gs.dt <- lsat_summarize_growing_seasons(lsat.pheno.dt, si = 'ndvi')
lsat.trend.dt <- lsat_calc_trend(lsat.gs.dt, si = 'ndvi.max', yrs = 2000:2020)
lsat_plot_trend_hist(lsat.trend.dt)

logan-berner/lsatTS documentation built on Oct. 21, 2024, 12:23 a.m.