pc {BeadExplorer} | R Documentation

## Principal component plot

### Description

Produces a sample PCA plot

### Usage

    pc(data, xpca = 1, ypca = 2, col = NULL, verbose = FALSE, labels=colnames(data), pos = 2, offset = 0.5, cex.text=0.8,...)

### Arguments

`data` | A matrix of expression values
`xpca` | Principal component to plot on x-axis
`ypca` | Principal component to plot on y-axis
`col` | A vector of colours used to represent each sample - default is rainbow colours
`verbose` | Logcial specifying if commentray should be outputted
`labels` | A vector of character labels to use for labeling. Default is sample names
`pos` | Position relative to plot point to label samples, see `text`
`offset` | Distance from plot point to place for labels, see `text`
`cex.text` | Text size relative to default
`...` | Arguments passed to `plot`

### Details

Provides a sample PCA plot of data. Should only be required for customised analysis - defaults are used in `plotSamples`

### Value

Nothing

### Author(s)

Gareth Elvidge gareth.elvidge@well.ox.ac.uk

### See Also

`plotSamples`

### Examples

    data(examplebeadData)
    pc(exprs(examplebeadData))

[Package BeadExplorer version 1.2.0 Index]