plotProfileExtract: Profile and image plotting

View source: R/sampleView.R

plotProfileExtractR Documentation

Profile and image plotting

Description

Plot the profile and the image (if available) of a particle.

Usage

plotProfileExtract(
  profiles,
  profiles.colors = NULL,
  image = NULL,
  curve.names = NULL,
  title = "Some observation",
  sub = "",
  sub.color = NULL,
  image.dir = NULL
)

Arguments

profiles

matrix of profile data (signals in columns).

profiles.colors

vector of colors corresponding to each signal in profile.

image

character vector specifying the name (without path) + extension of the associated image (if available).

curve.names

vector of character specifying the names of each signal in profile.

title

character vector specifying the title of the plot.

sub

character vector specifying the subtitle of the plot.

sub.color

character vector specifying the color of the subtitle.

image.dir

images directory.

Details

plotProfileExtract plots the profile and the image (if available) of a particle

Value

None

See Also

plotSampleFeatures, visualizeSampleClustering

Examples

dat <- rbind(matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 6, sd = 0.3), ncol = 2))
colnames(dat) <- c("x","y")
tf1 <- tempfile()
write.table(dat, tf1, sep=",", dec=".")

sig <- data.frame(ID=rep(1:150, each=30), SIGNAL=rep(dnorm(seq(-2,2,length=30)),150))
tf2 <- tempfile()
write.table(sig, tf2, sep=",", dec=".")

x <- importSample(file.features=tf1, file.profiles=tf2)

plotProfileExtract(x$profiles[[1]])



RclusTool documentation built on May 29, 2024, 5:23 a.m.