plotSingles: plot indivividual time series in cluster context

View source: R/clusterTools.R

plotSinglesR Documentation

plot indivividual time series in cluster context

Description

plot indivividual time series (GOI: genes of interest) from timeseries and clustering objects; a wrapper for plotClusters, allowing to only plot individual time series in their cluster context (colors and individual panels for clusters) and using the same style and providing all functionality from plotClusters.

Usage

plotSingles(
  x,
  cls,
  goi,
  grep = FALSE,
  each = TRUE,
  plot.legend = each,
  lwd = 2,
  leg.xy = "topleft",
  y.intersp = 1,
  ...
)

Arguments

x

either a simple data matrix with time points (x-axis) in columns, or a processed time-series as provided by processTimeseries

cls

"clustering" object from function clusterTimeseries or flowclusterTimeseries

goi

list of feature ids (rownames in cls$clusters !) to plot

grep

logical, if TRUE goi are searched by pattern match (as argument pattern in grep) instead of perfect matches

each

plot separate panels for each cluster

plot.legend

logical indicating whether to plot feature names in a legend

lwd

line width of single time-series

leg.xy

position of the legend, see legend

y.intersp

legend line interspacing, see legend

...

arguments to plotClusters


raim/segmenTools documentation built on March 20, 2024, 6:23 a.m.