plot_data.Rd
Add data to an existing plot or create a new one from create.base.plot
plot_data(trait.data, base.plot = NULL, ymax, color = "black")
trait.data | data to be plotted |
---|---|
base.plot | a ggplot object (grob),
created by |
ymax | maximum height of y |
updated plot object
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
# NOT RUN { plot_data(data.frame(Y = c(1, 2), se = c(1,2)), base.plot = NULL, ymax = 10) # }