replayPlotOrder: Wrapper for 'replayPlot'

View source: R/shinyApp.R

replayPlotOrderR 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)


tnaake/MetCirc documentation built on April 23, 2023, 8:56 a.m.