plot.csvy: 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 csvy
plot(
x,
x1 = NULL,
x2 = NULL,
domains = NULL,
type = c("constrained", "unconstrained", "both"),
control = plot_csvy_control(),
...
)
Value
A ggplot2 object.
Arguments
x
An object of class "csvy".
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 "constrained", "unconstrained", or "both". Defaults to "constrained".
control
A list of display options returned by plot_csvy_control. Defaults to plot_csvy_control().
...
Additional arguments passed to ggplot2::geom_line() or geom_point(), such as linewidth, size, etc.
See Also
plot_csvy_control for a full list of customizable settings.