View source: R/vanKrevelenPlot.R
vanKrevelenPlot | R Documentation |
Create a Van Krevelen plot (H:C ratio vs O:C ratio) for an ftmsData object using Plotly.
vanKrevelenPlot(
ftmsObj,
title = NA,
colorPal = NA,
colorCName = NA,
vkBoundarySet = "bs1",
showVKBounds = TRUE,
xlabel = "O:C Ratio",
ylabel = "H:C Ratio",
legendTitle = colorCName
)
ftmsObj |
an object of class 'peakData' or 'compoundData', (output of |
title |
plot title |
colorPal |
color palette function, one of |
colorCName |
column name of |
vkBoundarySet |
character vector specifying which boundary set to use when determining class. Valid options are currently "bs1" and "bs2" and defaults to "bs1". See details of |
showVKBounds |
TRUE/FALSE, should the Van Krevelen bounds be plotted? |
xlabel |
x axis label, default is "O:C Ratio" |
ylabel |
y axis label, default is "H:C Ratio" |
legendTitle |
title for the legend, only used when coloring points according to a numeric scale |
a plotly object
Amanda White
plot_ly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.