caterpillar.plot: Caterpillar plot of the highest posterior density (HPD)...

Description Usage Arguments Examples

View source: R/plot_functions.R

Description

This function produces a caterpillar plot for samples from BayesDiallel posterior distributions.

Usage

1
2
3
4
5
6
7
8
caterpillar.plot(gibbs.object, override.title = NULL,
  override.xlab = NULL, include.effect.types = c("mu", "female", "add",
  "mat", "inbred", "epi_sym", "epi_asym", "var"), col = c("black",
  "black", "#A6CEE3", "#B2DF8A", "#FDBF6F", "#CAB2D6", "#D2B48C", "black"),
  inbred.penalty.col = "#FB9A99", rev.strain.output = TRUE,
  manual.limits = NULL, override.col = NULL, include.grid = TRUE,
  include.prefix = TRUE, zero.lty = 2, zero.color = "gray",
  effect.label.cex = 0.5)

Arguments

gibbs.object

Posterior samples from the BayesDiallel model fit with diallel.gibbs().

override.title

DEFAULT: NULL. Allows title to be manually specified.

override.xlab

DEFAULT: NULL. Allows x-axis label to be manually specified.

include.effect.types

DEFAULT: c("mu", "female", "add", "mat", "inbred", "epi_sym", "epi_asym", "var"). The effect types to be included in the plot.

col

DEFAULT: c("black", "black", "#A6CEE3", "#B2DF8A", "#FDBF6F", "#CAB2D6", "#D2B48C", "black"). Colors corresponding to the effect types.

inbred.penalty.col

DEFAULT: "#FB9A99". The color for the overall inbred penalty.

rev.strain.output

DEFAULT: TRUE. Reverses the ordering of strain effects.

manual.limits

DEFAULT: NULL. Allows the x-axis limits to be manually specified.

override.col

DEFAULT: NULL. Allows the HPD interval colors to be manually specified.

include.grid

DEFAULT: TRUE. Adds gray horizontal guide lines for strain-level effects.

include.prefix

DEFAULT: TRUE. If TRUE, effect type included on y-axis label as a prefix.

zero.lty

DEFAULT: 2. The line type of the vertical line at 0.

zero.color

DEFAULT: "gray". The color of the vertical line at 0.

effect.label.cex

DEFAULT: 0.5. Specifies the size of the effect labels.

Examples

1

gkeele/DIDACT documentation built on Jan. 1, 2020, 2:58 a.m.