plot.kcomp function

Plot Function for RRPP

Plot Function for RRPP

## S3 method for class 'kcomp' plot(x, axis1 = 1, axis2 = 2, flip = NULL, include.axes = TRUE, ...)

Arguments

  • x: An object of class kcomp
  • axis1: A value indicating which component should be displayed as the X-axis (default = K1)
  • axis2: A value indicating which component should be displayed as the Y-axis (default = K2)
  • flip: An argument that if not NULL can be used to flip components in the plot. The values need to match axis1 or axis2. For example, if axis1 = 3 and axis2 = 4, flip = 1 will not change either axis; flip = 3 will flip only the horizontal axis; flip = c(3, 4) will flip both axes.
  • include.axes: A logical argument for whether axes should be shown at x = 0 and y = 0. This is different than the axes argument in the generic plot.default function, which controls the edges of the plot (providing a box effect or not). Using include.axes = TRUE does not allow aesthetic control of the axes. If desired, it is better to use include.axes = FALSE and augment the plot object with abline (choosing h = 0 and v = 0 in separate applications).
  • ...: other arguments passed to plot (helpful to employ different colors or symbols for different groups). See

Returns

An object of class "plot.kcomp" is a list with components that can be used in other plot functions, such as the type of plot, points, a group factor, and other information depending on the plot parameters used.

Author(s)

Michael Collyer