use_interactive_graphics {lipidr} | R 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)

[Package lipidr version 2.8.1 Index]