Description Usage Arguments Value Author(s) Examples
It plots the peaks both as counts and splines (if provided). Peaks are centered around their summit. If the clustering has been performed, peaks can be aligned and divided in cluster, shown in different panels.
1 2 3 4 5 |
object |
GRanges object of length N. It must contain the metadata column |
index |
vector. Indices of the peaks to be plotted. Default is |
line.plot |
string. Type of plot. If |
col |
vector. Colors used to plot the peaks. If |
shift |
logical. This parameter controls the abscissae of the
plotted peaks, and plays two different roles, depending on the |
k |
integer. If |
cluster.peak |
logical. It |
rescale |
logical. If |
lwd, cex.axis, cex.lab, cex.main |
Optional graphical parameters. |
Graphical method to graphically represent data. No output returned,
Alice Parodi, Marco J. Morelli, Laura M. Sangalli, Piercesare Secchi, Simone Vantini
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # load the data
data(peaks)
# First example:
# plot of the spline approximation
# of the first 10 peaks
# centered around their summit
plot_peak(peaks.data.summit, index = 1:10,
shift = TRUE)
# Second example:
# plot of the peaks
# divided in the k=3
# and shift = TRUE clusters
# obtained with the cluster_peak method
plot_peak(peaks.data.cluster,
shift = TRUE, k = 3, cluster.peak = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.