Description Usage Arguments Examples
View source: R/sample_dove_routes.R
This function randomly samples routes from within a stage.
1 | 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. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.