pca.legend: A Function to Automagically Place a Legend in a PCA Plot

Description Usage Arguments Value Author(s)

View source: R/affystart.R

Description

This function places a legend in a PCA plot depending on which corner is available. If there are no available corners, user intervention will be required. This is an internal function and not intended to be called by the end user.

Usage

1
2
3
4
5
6
7
8
9
pca.legend(
  pca,
  groups,
  groupnames,
  pch.df,
  x.coord = NULL,
  y.coord = NULL,
  saveup = FALSE
)

Arguments

pca

A 'pca' object

groups

A vector of numbers indicating group membership

groupnames

A vector of names describing the different groups

pch.df

A numeric data.frame delineating the plotting symbols (column 1) and colors (column 2) to use

x.coord

X-coordinate for legend. Used if automatic placement will fail

y.coord

Y-coordinate for legend. Used if automatic placement will fail

saveup

Boolean: Save a small value for plotting additional text?

Value

This function returns nothing. It is used only for the side effect of placing a legend in a plot.

Author(s)

James W. MacDonald <jmacdon@u.washington.edu>


affycoretools documentation built on Nov. 8, 2020, 6 p.m.