use_interactive_graphics: Activate interactive graphics

View source: R/lipidr-package.R

use_interactive_graphicsR Documentation

Activate interactive graphics

Description

Use this function to turn on/off interactive graphics plotting. Interactive plots require plotly to be installed. Interactive graphics are disabled by default.

Usage

use_interactive_graphics(interactive = TRUE)

Arguments

interactive

Should interactive plots be displayed? Default is TRUE.

Value

None

Examples

data(data_normalized)
use_interactive_graphics()

# plot the variation in intensity and retention time of all measured
#  lipids in QC samples
d_qc <- data_normalized[, data_normalized$group == "QC"]
# plot_molecules(d_qc, "cv", "Area")

# turn off interactivity
use_interactive_graphics(interactive = FALSE)

ahmohamed/lipidr documentation built on July 7, 2023, 2:22 a.m.