Viewing Multiple Interactive Plots with plotly
And trelliscopejs
Lipids are organic compounds that are mostly insoluble in polar solvents like water.
The most common ones are cholesterol and triglycerides in blood lipid panel test.
Blood sample image from brgfx
Quality control samples helps to check the severity of variation from external sources such as contaminant ions.
We want to keep molecules that gives a low variation on the quality control samples.
Plots are exported as pages in a pdf file.
plotly
and trelliscopejs
Today’s targeted lipidomics workflow can measure up to a few hundred molecules.
This gives a pdf file of over 500 pages.
Looking at these static plot individually to gain insights is tedious.
Images by Amonrat Rungreangfangsai
plotly
and trelliscopejs
Out of > 500 molecules,
plotly
and trelliscopejs
Thanks to open science, I am able to create a walk through example using Quarto .
Images from Wolrab et. al. 2022
Use dplyr::mutate
and trelliscopejs::pmap_plot
to save plotly
plots as a new column.
trelliscopejs
cognosticsProviding metadata information as trelliscopejs
cognostics can help to improve the user experience.
To export a trelliscopejs
object.
To export a Quarto document with trelliscopejs
object.
Exported examples are found under the Releases section in the below GitHub page.
trelliscopejs
Examples
Presentation
https://www.rstudio.com/resources/rstudioconf-2017/trelliscopejs/
https://www.youtube.com/watch?v=TgFJrfSEKuQ
Hope to see more examples…
Summary
Quality control samples are useful to check for unwanted variation in a targeted lipidomics workflow.
plotly
and trelliscopejs
can help to explore many interactive plots in an effective way.
Hope that the Quarto example and advice provided are useful.
Images by Amonrat Rungreangfangsai