plot_grid_abunds: plot_grid_abunds

View source: R/plot_grid_abunds.r

plot_grid_abundsR Documentation

plot_grid_abunds

Description

plots species abundances across spatial sampling locations

Usage

plot_grid_abunds(grid, abunds, pch = "", ...)

Arguments

grid

data frame with columns x and y, representing cartesian coordinates of sample locations. Can be artificial (generate with randomgrid()) or real.

abunds

abundances of a species, corresponding to rows in grid.

pch

pch character code to use for bottom of each abundance line (default: "")

...

arguments to be passed to plot.

Value

returns nothing, just makes a plot.

Author(s)

John L. Darcy

Examples

# library(specificity)
# g1 <- randomgrid()
# plot(g1)
# a1 <- geo_spec_sim(sdev=c(30, 30, 30, 30), n_obs=1000, 
#   grid=g1, up=c(0, 0.20, 0.40, 0.60))
# par(mfrow=c(2,2))
# plot_grid_abunds(g1, a1$matrix[,1])
# plot_grid_abunds(g1, a1$matrix[,2])
# plot_grid_abunds(g1, a1$matrix[,3])
# plot_grid_abunds(g1, a1$matrix[,4])


darcyj/specificity documentation built on Aug. 1, 2023, 8 a.m.