Description Usage Arguments Details See Also Examples
plotData
allows to visualize the data and, possibly, the selected samples and peaks.
1 2 3 |
data |
input data (formatted as data.frame with 4 columns: green, orange, blue, time) |
channels |
a vector with the name of the channels we want to plot (e.g. channels=c("green", "blue") to plot the green and the blue channel) |
startTime |
initial time point to be plot. Default is NA, plots from the first time point in the data |
ymin, ymax |
lower and upper limit of the y axes. Default is NA, for automatically defined range to include all data. |
peaks |
peaks computed using the function |
samples |
samples selected using the function |
ytext |
position in the y axes of the sample names/numbers if samples argument is specified |
savePlot |
if FALSE, the plot is not saved; if TRUE plot is saved with default file name; if string, plot is saved with given filename. Plot is saved in .png format |
This function is used to visualize the desired range of data showing values for one or more channels. It can be
used also to plot the peaks selected on one channel using the function peaksSelection
and/or the
samples identified using samplesSelection
.
peaksSelection
to select peaks in a specific channel, samplesSelection
to separate
data in samples
1 2 3 4 5 6 7 8 9 | data(BxPC3_data, package="BraDiPluS")
plotData(data=MyData, channels=c("blue", "green", "orange"))
res <- samplesSelection(data=MyData, BCchannel="blue",BCthr=0.01, BCminLength=100, distThr=16, plotMyData=F, barcodePos="before")
samples<-res$samples
plotData(data=MyData, channels=c("blue", "orange", "green"), samples = samples)
BCpeaks <- peaksSelection(MyData, channel="blue")
plotData(data=MyData, channels=c("blue", "orange", "green"), peaks = BCpeaks)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.