smoothScatter: generic for smoothScatter

Description Usage Arguments Value Examples

Description

smoothScatter method for PCA class

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
smoothScatter(
  x,
  y = NULL,
  nbin = 128,
  bandwidth,
  colramp = colorRampPalette(c("white", blues9)),
  nrpoints = 100,
  ret.selection = FALSE,
  pch = ".",
  cex = 1,
  col = "black",
  transformation = function(x) x^0.25,
  postPlotHook = box,
  xlab = NULL,
  ylab = NULL,
  xlim,
  ylim,
  xaxs = par("xaxs"),
  yaxs = par("yaxs"),
  ...
)

## S4 method for signature 'PCA'
smoothScatter(
  x,
  y = NULL,
  nbin = 128,
  bandwidth,
  colramp = colorRampPalette(c("white", blues9)),
  nrpoints = 100,
  ret.selection = FALSE,
  pch = ".",
  cex = 1,
  col = "black",
  transformation = function(x) x^0.25,
  postPlotHook = box,
  xlab = NULL,
  ylab = NULL,
  xlim,
  ylim,
  xaxs = par("xaxs"),
  yaxs = par("yaxs"),
  ...,
  comps = c(1, 2),
  pcType = "pcaScores",
  label = FALSE,
  labelThreshold = 1
)

Arguments

x

object of class PCA

y

numeric usually NULL

nbin

numeric

bandwidth

numeric vector length 1 or 2

colramp

numeric

nrpoints

numeric

ret.selection

logical

pch

character

cex

numeric

col

character

transformation

function

postPlotHook

box

xlab

NULL

ylab

NULL

xlim

numeric

ylim

numeric

xaxs

par

yaxs

par

...

additional args

comps

numeric

pcType

character

label

boolean

labelThreshold

numeric

Value

graphical output

Examples

1
2
3
4
5
library(tofsimsData)
data(tofsimsData)
testImage<-PCAnalysis(testImage, nComp = 4)
smoothScatter(analysis(testImage, 1), comps = c(1,2), 
pcType = 'pcaScores', xlab = 'comp 1', ylab = 'comp 2')

Example output

Loading required package: ProtGenerics

Attaching package:ProtGenericsThe following object is masked frompackage:stats:

    smooth

1

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.