plot.votes_tsne: Plot votes_tsne

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plot.votes_tsne.R

Description

Plot a votes_tsne object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'votes_tsne'
plot(
  x,
  cex = 1.5,
  pch = coltable$symbol[match(x$predicted, coltable$class)],
  bg = coltable$color[match(x$predicted, coltable$class)],
  main = "",
  alpha = 220,
  margin = 7,
  ncol = 4,
  x.intersp = 1,
  y.low = 3,
  pal = colors
)

Arguments

x

A votes_tsne object

bg

Fill color of symbols

main

Title passed to plot

alpha

The transparency value for the symbols

margin

The Graphical parameter passed to oma for the lower margin, to accomodate legend

ncol

The number of columns for the legend

x.intersp

Space between legend symbol and legend text

y.low

Distance of legend from y axis

pal

Color palette to be sued for symbols (default is internal colors)

Details

Plot the resuls of a t-sne analysis of the randomForest votes matrix. The fuction has an internal color palette 'colors' that allows for ajustement of the transparency values using the parameter alpha. USe your own color palette with the parameter pal (note that alpha will not wrok then) The graph legend can be easyly placed at the bottom of the graph using the parameters margin, ncol and y.low.

Author(s)

Pedro Martinez Arbizu

See Also

votes.tsne

Examples

1
2
3
4
5
data(maldi)
rf <- randomForest(species ~.,data = maldi[,-1])
vt <- votes.tsne(rf)
plot(vt)
plot(vt,margin=5,y.low=3,ncol=3,cex=2,alpha=180,main='rf votes on Maldi-Tof spectra')

pmartinezarbizu/RFtools documentation built on March 10, 2021, 12:11 p.m.