plot_density: Plot results of distance sampling

Description Usage Arguments Value Author(s) Examples

View source: R/plot_density.R

Description

Plot results of distance sampling

Usage

1
plot_density(obj, type = "D", year = F)

Arguments

obj

Model output from fit_distance_models

type

Type of output to plot, either D for density estimates or N for abundance estimates. Default is D.

year

Defaults to FALSE. Change to TRUE if strata include estimates by year and you wish to plot trends.

Value

Returns a ggplot2 object for further customization.

Author(s)

Kristen Dybala, [email protected]

Examples

1
2
3
4
5
6
7
## Not run: 
fdat = format_data(data=dat, strata='group')
results = fit_distance_models(fdat, 'speciesname', bins=c(0,10,20,30,40,50,75,100))
plot_density(results, 'D', year=T) + theme_classic() +
scale_color_manual(values=c('#682C7','#64AD34'))

## End(Not run)

kdybala/pbdistance documentation built on May 18, 2017, 6:30 p.m.