plot.drord {drord} | R Documentation |
Print the output of a "drord"
object.
Description
Print the output of a "drord"
object.
Usage
## S3 method for class 'drord'
plot(
x,
treat_labels = c(1, 0),
dist = "pmf",
out_labels = if (dist == "pmf") { x$out_levels } else {
x$out_levels[-length(x$out_levels)] },
...
)
Arguments
x |
A |
treat_labels |
Labels for the treatment variables (treat = 1 followed by treat = 0). |
dist |
Which distribution to plot. Valid options are |
out_labels |
Labels for the ordered outcome levels. If |
... |
Other arguments (not used) |
Value
A list with named entries plot
(a ggplot2
object) and plot_data
,
the data.frame
from which the plot is made. The latter is included for additional
modifications to the plot that are desired.
[Package drord version 1.0.1 Index]