Learn R Programming

lmap (version 0.1.3)

plot.lpca: Plots a Logistic PCA Model

Description

Plots a Logistic PCA Model

Usage

# S3 method for lpca
plot(
  x,
  dims = c(1, 2),
  type = "H",
  ycol = "darkgreen",
  xcol = "lightskyblue",
  ocol = "grey",
  ...
)

Value

Plot of the results obtained from lpca

Arguments

x

an object of type lpca

dims

which dimensions to visualize

type

either H (hybrid), I (inner product/pca), or D (distance/melodic)

ycol

colour for representation of response variables

xcol

colour for representation of predictor variables

ocol

colour for representation of row objects

...

additional arguments to be passed.

Examples

Run this code
if (FALSE) {
data(dataExample_lpca)
Y = as.matrix(dataExample_lpca[, 1:8])
X = as.matrix(dataExample_lpca[, 9:13])
# unsupervised
output = lpca(Y = Y, S = 2)
plot(output)
}

Run the code above in your browser using DataLab