replayPlotOrder: Wrapper for 'replayPlot'

Description Usage Arguments Details Value Author(s) Examples

View source: R/shinyApp.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

MetCirc documentation built on Nov. 8, 2020, 8:26 p.m.