plot.csvy: Plot method for csvy objects Generates a diagnostic or...

View source: R/plot.csvy.R

plot.csvyR 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 "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.

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"))

csurvey documentation built on June 8, 2025, 12:41 p.m.

Related to plot.csvy in csurvey...