sample_dove_routes.RdThis function randomly samples routes from within a stage.
sample_dove_routes(dat, years = c(1990, 2000, 2005), max.sample = 50)
| dat | Dataframe containing BBS data. Must contain columns for Year, Aou species code and Route  | 
    
|---|---|
| years | Years for for which you want to generate data for  | 
    
| max.sample | Maximum number routes per year.  | 
    
## create data #dat <- sample_dove_routes(dat = doves_PA, # years = c(2005,2007,2010)) ## Make year a factor #dat$Year <- factor(dat$Year) ## Plot means with 95% confidence intervals library(ggplot2) library(ggpubr) #ggerrorplot(dat, # x = "Year", #y = "tot.seen", #desc_stat = "mean_ci", #add = "mean")