replayPlotAdd | R Documentation |
replayPlotAdd
plots additional plots on a plot, either
plots plotCircos
or highlight
.
replayPlotAdd( orderMatch = "mz", onCircle = FALSE, linkDf, mz_match, rt_match, clust_match, ind, indMz, indRT, indCluster )
orderMatch |
|
onCircle |
|
linkDf |
|
mz_match |
|
rt_match |
|
clust_match |
|
ind |
|
indMz |
|
indRT |
|
indCluster |
|
Helper function for shinyCircos
.
Depending on onCircle
and indMz
either returns
plotCircos
or highlight
Thomas Naake, thomasnaake@googlemail.com
data("spectra", package = "MetCirc") similarityMat <- Spectra::compareSpectra(sps_tissue[1:10], FUN = MsCoreUtils::ndotproduct, ppm = 10, m = 0.5, n = 2) rownames(similarityMat) <- colnames(similarityMat) <- sps_tissue$name[1:10] ## order according to m/z mz_match <- MetCirc:::typeMatch_link0(similarityMatrix = similarityMat, sps = sps_tissue, type = "mz", condition = c("SPL", "LIM", "ANT", "STY")) linkDf <- mz_match[["link0df"]] mz_match <- mz_match[["type_match"]] ## order according to retention time rt_match <- MetCirc:::typeMatch_link0(similarityMatrix = similarityMat, sps = sps_tissue, type = "retentionTime", condition = c("SPL", "LIM", "ANT", "STY")) rt_match <- rt_match[["type_match"]] ## order according to clustering clust_match <- MetCirc:::typeMatch_link0(similarityMatrix = similarityMat, sps = sps_tissue, type = "clustering", condition = c("SPL", "LIM", "ANT", "STY")) clust_match <- clust_match[["type_match"]] circos.initialize(mz_match,##, levels = mz_match), xlim = matrix(rep(c(0,1), length(mz_match)), ncol = 2, byrow = TRUE)) #circos.trackPlotRegion(factor(mz_match, levels = mz_match), ylim = c(0,1)) MetCirc:::replayPlotAdd(orderMatch = "mz", onCircle = FALSE, linkDf = linkDf, mz_match = mz_match, rt_match = rt_match, clust_match = clust_match, ind = 1, indMz = NULL, indRT = NULL, indCluster = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.