Learn R Programming

ume (version 1.5.2)

uplot_dbe_vs_ppm: Plot DBE vs ppm with Option for Interactive Plot

Description

This function generates a scatter plot of DBE (Double Bond Equivalent) versus parts per million (ppm) from the provided data. It also provides the option to customize the appearance and to return an interactive plotly plot.

Usage

uplot_dbe_vs_ppm(
  df,
  size_dots = 0.5,
  cex.axis = 1,
  cex.lab = 1.4,
  plotly = FALSE,
  ...
)

Value

A ggplot object or a plotly object depending on the plotly argument.

Arguments

df

A data frame containing the data. The columns ppm (ppm values), dbe (DBE values), and file_id (for coloring the points) should be present in the data.

size_dots

Numeric. Size of the dots in the plot (default = 0.5).

cex.axis

Numeric. Size of axis text (default is 1).

cex.lab

Numeric. Size of axis labels (default is 1.4).

plotly

Logical. If TRUE, return interactive plotly object.

...

Additional arguments passed to methods.