add.data: Add data to plot

Description Usage Arguments Details Value See Also Examples

View source: R/plots.R

Description

Add data to an existing plot or create a new one from create.base.plot

Usage

1
2
  add.data(trait.data, base.plot = NULL, ymax,
    color = "black")

Arguments

trait.data

data to be plotted

base.plot

a ggplot object (grob), created by create.base.plot if none provided

ymax

maximum height of y

Details

Used to add raw data or summary statistics to the plot of a distribution. The height of Y is arbitrary, and can be set to optimize visualization. If SE estimates are available, tehse wil be plotted

Value

updated plot object

See Also

create.base.plot

Examples

1
add.data(data.frame(Y = c(1, 2), se = c(1,2)), base.plot = NULL, ymax = 10)

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