plotExPrior: plot ex-situ prior

Description Usage Arguments Value Examples

View source: R/plotExPrior.R

Description

plotExPrior plot informative and non-informative priors

Usage

1
plotExPrior(resExPrior, plotExData = F)

Arguments

resExPrior

output from the genExPrior function

plotExData

boolean asking whether to additionally plot the ex-situ data

Value

a plot

Examples

1
2
3
4
5
6
exdata <- data.frame(val=c(c(2,3,4),c(2,1),c(6,7,2,3)),
                  site_id=c(rep("a",3),rep("b",2),rep("c",4)),
                  x = c(c(2,3,4),c(2,3),c(2,2,3,3)),
                  y = c(c(2,2,3),c(3,2),c(2,3,2,3)))
ex_prior <- genExPrior(exdata=exdata,theta=seq(from=-5,to=5,by=1))
plotExPrior(ex_prior)

exPrior documentation built on Nov. 15, 2019, 1:07 a.m.