replayPlotOrder {MetCirc}R Documentation

Wrapper for 'replayPlot'

Description

'replayPlotOrder' will call 'replayPlot' from 'grDevices' with a 'recordedplot' object based on 'orderMatch'.

Usage

replayPlotOrder(orderMatch = "mz", onCircle = FALSE, plot_l, ind)

Arguments

orderMatch

'character', either '"mz"', '"retentionTime"' or '"clustering"'

onCircle

'logical', are coordinates on circle. If FALSE and no features are selected ('length(ind) == 0'), then filled plots are replayed, otherwise highlighted plots are replayed.

plot_l

'list' with plots

ind

'numeric', indices of clicked features

Details

Helper function for 'shinyCircos'.

Value

'replayedplot'

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

type_match <- c("a_1", "a_2", "a_3", "b_1", "b_2", "b_3", "c_1", "c_2")
plotCircos(type_match, NULL, initialize = TRUE, featureNames = TRUE,
    groupSector = TRUE, groupName = FALSE, links = FALSE,
    highlight = TRUE)
p <- recordPlot()
plot.new()
plot_l <- list(highlightMz = p)
MetCirc:::replayPlotOrder(orderMatch = "mz", onCircle = TRUE,
    plot_l = plot_l, ind = NULL)


[Package MetCirc version 1.23.0 Index]