Learn R Programming

lmap (version 0.2.4)

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",
  pmarkers = seq(0.1, 0.9, by = 0.1),
  ycol = "darkgreen",
  xcol = "darkblue",
  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)

pmarkers

vector or list of length R (the number of response variables) with values between 0 and 1 for markers on the response variable axes.

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