plotDens: Plot sample density along HSI gradient

Description Usage Arguments Details Author(s)

Description

Generates plot of observed (nest) density in moving window bins and suitability classes along habitat suitability index (HSI) gradient.

Usage

1
2
3
4
  plotDens(dat.plot, dat.class, sampleHSIs, thresholds, binPntSize = 2, classPntSize = 5,
                         axisLabSize = 20, tickLabSize = 15,
                         BS = F, ylabel = "Observed density (nests per 100 ha)",
                         xlabel = "Habitat Suitability Index (HSI)")

Arguments

dat.plot

Data frame with one row for each moving window bin. Ideally, use output from 'calcBinDensities' function.

dat.class

Data frame with one row for each suitability class. Ideally, use output from 'calcClassDensities' function.

sampleHSIs

Numeric vector with HSI values for sample observations (e.g., nest locations; used for rug plot)

thresholds

Numeric vector of HSI breakpoints defining suitability classes

binPntSize

Size of points representing bin densities in plot

classPntSize

Size of points representing class densities in plot

axisLabSize

Size of axis titles

tickLabSize

Size of tick labels

BS

If true, dat.class must include confidence limits (e.g., those generated by the 'HSIClassDensityBS' function), add error bars will be plotted depicting these.

ylabel

Character string - label for y-axis

xlabel

Character string - label for x-axis

Details

Generates plot (using ggplot2 package) showing sample (nest) densities along HSI gradient for publication and assessing goodness-of-fit.

Author(s)

Quresh S. Latif, Rocky Mountain Research Station, U.S. Forest Service


qureshlatif/WoodpeckerHSI documentation built on May 29, 2019, 7:51 a.m.