View source: R/plot_grid_abunds.r
plot_grid_abunds | R Documentation |
plots species abundances across spatial sampling locations
plot_grid_abunds(grid, abunds, pch = "", ...)
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. |
returns nothing, just makes a plot.
John L. Darcy
# 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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.