plot.trait: Plot trait density

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot trait density and data

Usage

1
2
3
4
  plot.trait(trait, prior = NULL, posterior.sample = NULL,
    trait.df = NULL,
    fontsize = list(title = 24, axis = 18), x.lim = NULL,
    y.lim = NULL, logx = FALSE)

Arguments

trait

character, name of trait to be plotted

prior

named distribution with parameters

posterior.sample
trait.data
fontsize

Value

plot (grob) object

Examples

1
2
3
4
5
6
7
prior1 <- data.frame(distn = 'norm',
                     parama = 20,
                     paramb = 5)
data1  <- data.frame(Y = c(19, 21), se = c(1,1))
plot.trait(trait = 'Vcmax',
          prior = prior1,
          trait.data = data1)

dlebauer/pecan-priors documentation built on Sept. 26, 2019, 5:03 a.m.