clusterPlotR-methods: Generic clusterPlotR function

Description Usage Arguments Value Examples

Description

plotting function for clustering objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clusterPlotR(cData, cls, x, NC, ...)

## S4 method for signature 'ANY,kmeans'
clusterPlotR(
  cData = NA,
  cls = NA,
  x = NA,
  NC = NA,
  annoIndx = NA,
  label = NULL,
  ...
)

## S4 method for signature 'ANY,hclust'
clusterPlotR(
  cData = NA,
  cls = NA,
  x = NA,
  NC = NA,
  annoIndx = NA,
  label = NULL,
  ...
)

Arguments

cData

data used to get clusters

cls

a cluster (kmeans or hclust) object

x

a vector of length equal to number of samples to use for plotting

NC

vector of integers indicating which clusters to use

...

additional parameters for plotting. ex. pch,cex,col,labels, xlab, etc.

annoIndx

vector indexing into subsets for plotting

label

character vector to use for plotting text, defaults is NULL

Value

A plot of the mean behavior for each cluster

Examples

1
2
3
4
5
6
## Not run: 
 k.RNAseq6l3c3t<-kmeans(p.RNAseq6l3c3t,22)
 clusterPlotR(p.RNAseq6l3c3t, cls=k.RNAseq6l3c3t,NC=1,x=pd.RNAseq6l3c3t$days, 
col=pd.RNAseq6l3c3t$color)

## End(Not run)

projectR documentation built on Nov. 8, 2020, 7:50 p.m.