plot_ccdc_by_catg | R Documentation |
Function for plotting surface reflectance curves by category (i.e., output of 'sample_ccdc_by_catg').
plot_ccdc_by_catg( ccdc_img_at_pnts, ccdc_img_date, catg_field, band, days = 730, med_only = F, ylim = c(0, 1) )
ccdc_img_at_pnts |
(data.frame) A data.frame containing the categories of interest, and associated CCDC coefficients for a given date (i.e., output of 'sample_ccdc_by_catg') |
ccdc_img_date |
(character) A representation of the CCDC image date that can be interpreted by as.Date() |
catg_field |
(character) Name of the column indicating the categories of interest. |
band |
(character) The name of the band for which to forecast CCDC surface reflectance time series. One of 'blue', 'green', 'red' 'nir', 'swir1','swir2' or 'therm'. |
days |
(integer) Number of days to predict surface reflectance from the CCDC image data ('ccdc_img_date'). |
med_only |
(boolean) When true, only median surface reflectance values are plotted by category |
ylim |
(numeric) Vector of length 2 defining the Y-Axis limits, defaults to c(0,1) |
(List) A data.frame with all data used for plot generation ('srdata'), a 'ggplot' object ('srplot'), and a data.frame with the legend codes cross-walk ('crosswalk').
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.