This function is built with `ggplot2`. Parameters such as `binwidth`, `adjust`, `density.color`, `density.lwd`, `density.lty`, and `density.alpha` correspond directly to arguments in the `ggplot2` geoms.
# S3 method for dpmeta
plot(
x,
n.samples = NULL,
x.lim = NULL,
y.lim = NULL,
x.lab = expression(theta^{
new
}),
y.lab = "Posterior Predictive Distribution",
title.plot = "Dirichlet Process ",
show.histogram = TRUE,
show.rug = TRUE,
binwidth = 0.08,
adjust = 1,
density.color = "blue",
density.lty = "solid",
density.lwd = 1,
density.alpha = 0.2,
hist.color = "black",
hist.fill = "grey95",
rug.color = "green",
rug.alpha = 0.5,
...
)The object generated by the dpmeta function.
The number of posterior samples to plot.
Numeric vector of length 2 specifying the x-axis limits.
Numeric vector of length 2 specifying the y-axis limits.
Text with the label of the x-axis. Defaults to "Treatment Effect".
Text with the label of the y-axis. Defaults to "Posterior Predictive Distribution".
Text for setting a title in the plot. Defaults to "Dirichlet Process ".
A logical value indicating whether to show the histogram.
A logical value indicating whether to show the rug plot.
A numeric value specifying the bin width for the histogram. Defaults to 0.08.
A numeric value to adjust the bandwidth of the density curves. Defaults to 1.
A character value for the density curve color. Defaults to "blue".
A character value for the density curve line type. Defaults to "solid".
A numeric value for the density curve line width. Defaults to 1.
A numeric value between 0 and 1 for the density curve transparency. Defaults to 0.2.
A character value for the histogram border color. Defaults to "black".
A character value for the histogram fill color. Defaults to "grey95".
A character value for the rug plot color. Defaults to "green".
A numeric value between 0 and 1 for the rug plot transparency. Defaults to 0.5.
...