plotProfile | R Documentation |
Plot the profile and the image (if available) of a particle.
plotProfile(
profiles,
profiles.colors = NULL,
image = NULL,
curve.names = NULL,
title = "Some observation",
sub = "",
sub.color = NULL,
image.dir = NULL,
charsize = 11
)
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. |
charsize |
character size |
plotProfile plots the profile and the image (if available) of a particle
None
plotSampleFeatures
, visualizeSampleClustering
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)
plotProfile(x$profiles[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.