Learn R Programming

exPrior (version 1.0.1)

plotExPrior: plot ex-situ prior

Description

plotExPrior plot informative and non-informative priors

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab