| fusionplot {LSD} | R Documentation | 
Visualize two-dimensional data clusters
Description
Depict a numeric matrix or list utilizing the underlying distribution quantiles of one dimension in a color encoded fashion.
Usage
fusionplot(
  x,
  y,
  label = NULL,
  main = NULL,
  xlim = NULL,
  ylim = NULL,
  fromto = c(0.05, 0.95),
  colpal = "standardheat",
  simulate = FALSE,
  daltonize = FALSE,
  cvd = "p",
  nrcol = 25,
  outer.col = "lightgrey",
  quartiles.col = c("grey", "black", "grey"),
  add.quartiles = TRUE,
  separate = TRUE,
  rev = FALSE,
  size = TRUE,
  alpha = NULL,
  axes = TRUE,
  ...
)
Arguments
| x | a numeric vector. | 
| y | a numeric vector. | 
| label | a character vector assigning rows/elements of 'input' to clusters (if specified, multiple clusters can be depicted in different colors and/or subsequent plots). | 
| main | title(s) of the plot, standard graphics parameter. | 
| xlim | x limits, standard graphics parameter. | 
| ylim | y limits, standard graphics parameter. | 
| fromto | a numeric vector containing the range of quantiles (between 0 and 1) to be plotted. | 
| colpal | a character vector containing R built-in color names or a name of a  | 
| simulate | logical: if  | 
| daltonize | logical: if  | 
| cvd | character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope). | 
| nrcol | a non-negative integer specifying the number of colors to be used (defaults to 25, if not specified). | 
| outer.col | R built-in color to be used for outlier lines (lines outside of 'fromto'). | 
| quartiles.col | a character vector containing three R built-in colors for quartile lines (c('0.25','0.5','0.75')). | 
| add.quartiles | logical: if  | 
| separate | if  | 
| rev | logical: if  | 
| size | logical: if  | 
| alpha | alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default). | 
| axes | logical: if  | 
| ... | additional parameters to be passed to points and plot. | 
Author(s)
Achim Tresch, Bjoern Schwalb
See Also
singlefusionplot, align, demotour, disco, colorpalette
Examples
nr = 750
x = 1:nr/300
y = c(rnorm(nr)+sin(2*x)*3,rnorm(nr)+sin(2*x+pi/2)*3)
x = c(x,x)
labs = paste("cluster",c(rep(c(1,2),each = nr)))
colpals = c("oranges","pubu")
qcol = c("transparent","black","transparent")
fusionplot(x,y,labs,separate=FALSE,colpal=colpals,alpha=75,quartiles.col = qcol)