plot.csvy {csurvey} | R Documentation |
Plot method for csvy objects
Generates a diagnostic or summary plot from a fitted "csvy"
object.
Supports both single-factor and two-factor visualization.
Aesthetic settings can be customized using plot_csvy_control()
.
Description
Plot method for csvy objects
Generates a diagnostic or summary plot from a fitted "csvy"
object.
Supports both single-factor and two-factor visualization.
Aesthetic settings can be customized using plot_csvy_control()
.
Usage
## S3 method for class 'csvy'
plot(
x,
x1 = NULL,
x2 = NULL,
domains = NULL,
type = c("constrained", "unconstrained", "both"),
control = plot_csvy_control(),
...
)
Arguments
x |
An object of class |
x1 |
Optional. Name of the first factor to display in two-factor plots. Defaults to the first added variable. |
x2 |
Optional. Name of the second factor to display in two-factor plots. Defaults to the second added variable. |
domains |
Optional. A data frame containing some domain(s) to be emphasized on the plot. Defaults to be NULL. |
type |
Character string, either |
control |
A list of display options returned by |
... |
Additional arguments passed to |
Value
A ggplot2
object.
See Also
plot_csvy_control
for a full list of customizable settings.
Examples
# plot.csvy(fit)
# plot.csvy(fit, x1 = "education", x2 = "region", control = plot_csvy_control(x1lab = "Education"))