sample_dove_routes: Select random subset of Breeding Bird Survey (BBS) routes

Description Usage Arguments Examples

Description

This function randomly samples routes from within a stage.

Usage

1
2
sample_dove_routes(dat = doves_PA, years = c(1990, 2000, 2005),
  max.sample = 50)

Arguments

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.

Examples

 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")

brouwern/wildlifeR documentation built on May 28, 2019, 7:13 p.m.