Description Usage Arguments Value Functions Examples
View source: R/vector_plotting.R
This suite of functions is accessed by leap.zig()
and produces vector plots
using BEF, CAFE, and Price components. leap.zig.both
plots both the BEF and CAFE vectors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | leap.zig.both(tmp, xlim = NA, ylim = NA, loc.standardize = TRUE,
error.bars = FALSE, raw.points = TRUE, vectors = TRUE,
group.vars = NULL, legend = TRUE, old.plot = NA, add = FALSE)
leap.zig.bef(tmp, xlim = NA, ylim = NA, loc.standardize = TRUE,
error.bars = FALSE, raw.points = TRUE, vectors = TRUE,
group.vars = NULL, legend = TRUE, old.plot = NA, add = FALSE)
leap.zig.cafe(tmp, xlim = NA, ylim = NA, loc.standardize = TRUE,
error.bars = FALSE, raw.points = TRUE, vectors = TRUE,
group.vars = NULL, legend = TRUE, old.plot = NA, add = FALSE)
leap.zig.price(tmp, xlim = NA, ylim = NA, loc.standardize = TRUE,
error.bars = FALSE, raw.points = TRUE, vectors = TRUE,
group.vars = NULL, legend = TRUE, old.plot = NA, add = FALSE)
|
tmp |
Data to plot |
xlim |
Plot's x limits |
ylim |
Plot's y limits |
error.bars |
Plot error bars |
raw.points |
Plot raw data points at level of community pairs |
vectors |
Plot averaged vectors |
legend |
Show legend |
old.plot |
ggplot object from previous |
add |
Add new plot to object provided in old.plot option |
loc.standarize |
Are these standardized vectors |
A ggplot object.
leap.zig.bef
: Plot vectors for BEF components
leap.zig.cafe
: Plot vectors for CAFE components
leap.zig.price
: Plot vectors for Price components
1 2 3 4 5 6 7 8 9 10 11 12 | # Load data and run pairwise comparisons of communities
cc2<-group_by(cedarcreek,NTrt,NAdd,Plot)
pp<-pairwise.price(cc2,species='Species',func='Biomass')
# Organize/format the results, and pull out a subset using NTrt=1 as the control site
pp<-group.columns(pp,gps=c('NTrt','NAdd'))
pp<-pp[pp$NTrt.x==1,]
dat1<-pp[pp$NAdd %in% c('0 27.2'),]
# Process and plot the result
tmp <- process.data.bef(dat1, group.vars=NULL, standardize=F)
leap.zig.bef(tmp, loc.standardize=F, group.vars=NULL,raw.points = F,legend = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.