Plot trait density and data

# S3 method for trait
plot(trait, prior = NULL, posterior.sample = NULL,
  trait.df = NULL, fontsize = list(title = 18, axis = 14),
  x.lim = NULL, y.lim = NULL, logx = FALSE)

Arguments

trait

character, name of trait to be plotted

prior

named distribution with parameters

posterior.sample
fontsize
trait.data

Value

plot (grob) object

Examples

# NOT RUN {
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.df = data1)
# }