plotPCA: plotPCA

View source: R/plot-methods.R

plotPCAR Documentation

plotPCA

Description

Visualize data, centroids and response confidence intervals for a given subnetwork with PCA. Optionally, color the samples according to annotations labels.

Usage

plotPCA(x, subnet.id, labels = NULL, confidence = 0.95, npoints = NULL, ...)

Arguments

x

NetResponseModel object. Output from the detect.responses function.

subnet.id

Subnetwork id. Either character as 'Subnetwork-2' or numeric as 2, which is then converted to character.

labels

Optional: sample class labels to be indicated in colors.

confidence

Confidence interval for the responses based on the covariances of each response. If NULL, no plotting.

npoints

Argument to the ellipse function

...

Further arguments for plot function.

Value

Used for its side-effects.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation('netresponse') for citation details.

Examples

#plotPCA(x, subnet.id)

antagomir/netresponse documentation built on March 30, 2023, 7:24 a.m.