VAST
VAST copied to clipboard
plot_residuals in VAST-single-species-example
Decide which years to plot
Year_Set = seq(min(Data_Geostat[,'Year']),max(Data_Geostat[,'Year'])) Years2Include = which( Year_Set %in% sort(unique(Data_Geostat[,'Year'])))
This will general error when the Year_Set is not continuous. To solve the problem, change Years2Include to Years2Include =1: length(sort(unique(Data_Geostat[,'Year']))))