class: middle, center, inverse # Viewing Multiple Inteactive Plots Using [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) .pull-left[ <img src="images/RMedicine_logo.JPG" title="Figure showing the R Medicine 2022 Conference logo." alt="Figure showing the R Medicine 2022 Conference logo." width="53%" style="display: block; margin: auto;" /> ### R/Medicine 2022 [
](https://events.linuxfoundation.org/r-medicine/) [
](https://twitter.com/r_medicine) ] .pull-right[ <img src="images/title.JPG" title="Figure showing the Injection Sequence Plot in trelliscopejs" alt="Figure showing the Injection Sequence Plot in trelliscopejs" width="100%" style="display: block; margin: auto;" /> ### Jeremy Selva [
](https://github.com/JauntyJJS) [
](https://www.linkedin.com/in/jeremy-selva-085b9112a/) [
](https://jeremy-selva.netlify.app/) [
](https://twitter.com/JauntyJJS) ] .left[ .footnote[ [Xaringan](https://github.com/yihui/xaringan) Slide Template by [Sharla Gelfand](https://github.com/sharlagelfand/sharstudioconf) [
](https://github.com/sharlagelfand) [
](https://sharla.online) [
](https://twitter.com/sharlagelfand) [
](https://www.youtube.com/watch?v=JThd3YYQXGg) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Introduction to Lipids .pull-left[ Lipids are organic compounds that are mostly insoluble in polar solvents like water. Example of lipids are * Cholesterol and Triglycerides in blood lipid panel test * Phospholipids in cell membrane * Ceramides in skin ] .pull-right[ <img src="images/Lipids.JPG" title="Figures showing examples where lipids can be found. First figure on the top left is a picture of a trained medical professional drawing blood samples from a person's arm symbolising a blood lipid panel test. Lipids like cholesterol and triglycerides are usually measured in the blood lipid panel test. Second figure on the top right is a picture of a cell membrane displayed as a lipid bilayer made up of mainly phospholipids as well as other lipids like cholesterol and glycolipids. Third Figure at the bottom shows the diverse role of ceramides and its metabolite sphingoid base in skin. Ceramides can be found in the outermost layer of the skin, serving as barrier protection against chemical or microbes. At the epidermis layer of the skin, ceramides assist in the role of cell differentiation and wound healing. Finally at the dermis layer of the skin, cell signaling roles of ceramide and its metabolites modulate immunity functions in the skin." alt="Figures showing examples where lipids can be found. First figure on the top left is a picture of a trained medical professional drawing blood samples from a person's arm symbolising a blood lipid panel test. Lipids like cholesterol and triglycerides are usually measured in the blood lipid panel test. Second figure on the top right is a picture of a cell membrane displayed as a lipid bilayer made up of mainly phospholipids as well as other lipids like cholesterol and glycolipids. Third Figure at the bottom shows the diverse role of ceramides and its metabolite sphingoid base in skin. Ceramides can be found in the outermost layer of the skin, serving as barrier protection against chemical or microbes. At the epidermis layer of the skin, ceramides assist in the role of cell differentiation and wound healing. Finally at the dermis layer of the skin, cell signaling roles of ceramide and its metabolites modulate immunity functions in the skin." width="95%" style="display: block; margin: auto;" /> ] .left[ .footnote[ Blood sample and cell membrane image from [brgfx](https://www.freepik.com/vectors/cell-membrane) Skin image from [Uchida and Park 2021](https://link.springer.com/article/10.1007/s40257-021-00619-2) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## How Lipids are measured (Targeted Lipidomics) <img src="images/Targeted_Lipidomics.JPG" title="Figure showing the workflow of how lipids are measured in a targeted lipidomics settings. Samples are first converted to lipid extracts. From a given list of transitions to measure, lipids in the extracts are measured using liquid chromatography and mass spectrometry. In the example, a transition from an internal standard Ceramide d eighteen one twelve zero is measured. This results in chromatogram peaks which the user needs to integrate the area under curve. In the case of the internal standard Ceramide d 18 1 12 0, it is four hundred and seventy nine thousand and twenty five. After the peaks are integrated for all samples and transtions, the peak area data are exported for further processing." alt="Figure showing the workflow of how lipids are measured in a targeted lipidomics settings. Samples are first converted to lipid extracts. From a given list of transitions to measure, lipids in the extracts are measured using liquid chromatography and mass spectrometry. In the example, a transition from an internal standard Ceramide d eighteen one twelve zero is measured. This results in chromatogram peaks which the user needs to integrate the area under curve. In the case of the internal standard Ceramide d 18 1 12 0, it is four hundred and seventy nine thousand and twenty five. After the peaks are integrated for all samples and transtions, the peak area data are exported for further processing." width="90%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Source of "Unwanted" Variation * Lipid Extraction * Different pipettes used to do extraction. * Lipid Measurement * Contaminant ions <img src="images/Unwanted_Variation.JPG" title="Figure showing the stages in the targeted lipidomics settings in which unwanted or non sample related variation can occur. It is usually during the stage of lipid extraction or measurement." alt="Figure showing the stages in the targeted lipidomics settings in which unwanted or non sample related variation can occur. It is usually during the stage of lipid extraction or measurement." width="90%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Quality Control (QC) Samples Quality control samples helps to check the severity of unwanted variation. One example is the Batch Quality Control (BQC) to measure variation during lipid extraction and measurement. <img src="images/BQC_Intro.JPG" title="Two figures showing what is a batch quality control (BQC). Left figure shows how the BQC samples are created. They are created by first pooling the sample aliquots. The pooled sample is then aliquoted into new eppendorf tubes. These aliquoted pooled samples in the eppendorf tubes are the BQC samples. Right figure shows where in the injection sequence are the BQC samples placed. They are usually placed before the first sample, in between samples at regular intervals, for example every five samples, and after the last sample." alt="Two figures showing what is a batch quality control (BQC). Left figure shows how the BQC samples are created. They are created by first pooling the sample aliquots. The pooled sample is then aliquoted into new eppendorf tubes. These aliquoted pooled samples in the eppendorf tubes are the BQC samples. Right figure shows where in the injection sequence are the BQC samples placed. They are usually placed before the first sample, in between samples at regular intervals, for example every five samples, and after the last sample." width="100%" style="display: block; margin: auto;" /> .left[.footnote[Pooled sample image from [Broadhurst et. al. 2018](https://doi.org/10.1007/s11306-018-1367-3)]] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Quality Control Plot An injection sequence bar chart with some statistical summary is created for each transition. Keep transitions whose BQC's coefficient of variation (CV) is low. Report results as a pdf file of injection sequence bar charts. (One transition per page) <img src="images/Injection_Sequence_Plot.JPG" title="Figure showing an injection sequence of internal standard Ceramide d eighteen one twelve zero as a bar chart. The y axis is peak area while the x axis is the injection sequence. The different colours on the bar chart repsresent the different QC sample type. The important ones are the ones in blue representing the BQC. The coefficient of variation of the BQC is around 0.085 which is a low value. Hence, the internal standard Ceramide d eighteen one twelve zero has a low interference from unwanted sources. This injection sequence bar chart is exported as a pdf file." alt="Figure showing an injection sequence of internal standard Ceramide d eighteen one twelve zero as a bar chart. The y axis is peak area while the x axis is the injection sequence. The different colours on the bar chart repsresent the different QC sample type. The important ones are the ones in blue representing the BQC. The coefficient of variation of the BQC is around 0.085 which is a low value. Hence, the internal standard Ceramide d eighteen one twelve zero has a low interference from unwanted sources. This injection sequence bar chart is exported as a pdf file." width="85%" style="display: block; margin: auto;" /> .left[.footnote[PDF image from [Wikimedia](https://commons.wikimedia.org/wiki/Category:PDF_icons)]] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Motivation for using [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) Number of samples are getting larger (increase to few thousands). Static bar charts and scatter plots will not work. <img src="images/Motivation1.JPG" title="Figure showing an injection sequence of internal standard Ceramide d eighteen one twelve zero as a bar chart. The y axis is peak area while the x axis is the injection sequence. The different colours on the bar chart repsresent the different QC sample type. A black arrow is shown at the bottom right of the plot connecting to the x-axis. The arrow highlights that the injection sequence can increase to a few thousands." alt="Figure showing an injection sequence of internal standard Ceramide d eighteen one twelve zero as a bar chart. The y axis is peak area while the x axis is the injection sequence. The different colours on the bar chart repsresent the different QC sample type. A black arrow is shown at the bottom right of the plot connecting to the x-axis. The arrow highlights that the injection sequence can increase to a few thousands." width="95%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Motivation for using [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) Number of transitions have increased to .red[over 500]. This give a pdf file of .red[over 500 pages] full of plots. <img src="images/Motivation2.JPG" title="Figure showing a long transition list contaning more than 500 transitions. The arrow on the right of the transition list leads to pictures of more than 500 injection sequence plots." alt="Figure showing a long transition list contaning more than 500 transitions. The arrow on the right of the transition list leads to pictures of more than 500 injection sequence plots." width="100%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Motivation for using [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) Different QC sample types give rise to different types of plots, resulting in the creation of .red[multiple] pdf files of .red[over 500 pages]. <img src="images/Motivation3.JPG" title="Left figure is showing a long list of QC sample types, leading to new plots such as a raincloud plot as well as a dilution plot. This give rise to an output of many pdf files, each at least 500 pages long. Right figure is showing a worker overwhelmed with many files of plots. The worker is carrying a sign calling for help." alt="Left figure is showing a long list of QC sample types, leading to new plots such as a raincloud plot as well as a dilution plot. This give rise to an output of many pdf files, each at least 500 pages long. Right figure is showing a worker overwhelmed with many files of plots. The worker is carrying a sign calling for help." width="90%" style="display: block; margin: auto;" /> .left[ .footnote[ Images by [Amonrat Rungreangfangsai](https://www.vecteezy.com/members/amy1313) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Motivation for using [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) .pull-left[ Using [`plotly`](https://plotly.com/r/) to create interactive plots is moving in the right direction. However, distribution of such results to collaborators/managers remains a challenge. Interactive plots cannot be stored in pdf files. [Shiny](https://shiny.rstudio.com/) was considered but * Lack expertises to maintain a secure web server to run [Shiny](https://shiny.rstudio.com/) applications. * Cannot expect collaborators/managers to install/run R packages and code to rebuild the [Shiny](https://shiny.rstudio.com/) application just to view the results. ] .pull-right[ <img src="images/Motivation4.JPG" title="Figure showing the a workflow using plotly and trelliscopejs. plotly and trelliscopejs, represented by ther logos, are used to create a folder called Dilution Plot Folder. The Dilution Plot Folder contains a appfile folder, a lib folder and a html file call index. The folder is then compressed into a zip folder called Dilution Plot Folder." alt="Figure showing the a workflow using plotly and trelliscopejs. plotly and trelliscopejs, represented by ther logos, are used to create a folder called Dilution Plot Folder. The Dilution Plot Folder contains a appfile folder, a lib folder and a html file call index. The folder is then compressed into a zip folder called Dilution Plot Folder." width="90%" style="display: block; margin: auto;" /> ] .left[.footnote[ [`plotly`](https://plotly.com/r/) logo from [Wikimedia](https://commons.wikimedia.org/wiki/File:Plotly_logo_for_digital_final_%286%29.png) [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) hex logo from the R package's [GitHub page](https://github.com/hafen/trelliscopejs) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- <p align="center"> <iframe width="1000" height="600" src="https://jauntyjjs.github.io/Trelliscopejs_In_Quarto_Supplementary1/" alt="A trelliscopejs result displaying the injection sequence plot and dilution plot. Users can interact with the plot results to draw useful information. Samples can be filtered by clicking on the legends. Sliders are provided to give the samples a closer look. Figures can be filtered and sorted by different metadata properties." ></iframe> </p> .left[ .footnote[ Embedded trelliscopejs results in [
](https://jauntyjjs.github.io/Trelliscopejs_In_Quarto_Supplementary1/) [
](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Supplementary1) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Quarto Example Thanks to open science, I am able to create a walk through example using Quarto [
](https://jauntyjjs.github.io/Trelliscopejs_In_Quarto_Example/) [
](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Example). <img src="images/Open_Science.JPG" title="Left figure showing a Nature Communications paper by Wolrab et. al. published on 10 January 2022. The paper is titled Lipidomics profiling of human serum enables detection of pancreatic cancer. This is followed by highlighted text showing where to download the data set used for the paper. They can be found in sections Data Availabilty: RP-UHPLC/MS Phase 2 and Supplementary Information: Supplementary Data 1 to 20. Right figure shows the use of the published data set to create a Quarto interactive document with the use of plotly and trelliscopejs." alt="Left figure showing a Nature Communications paper by Wolrab et. al. published on 10 January 2022. The paper is titled Lipidomics profiling of human serum enables detection of pancreatic cancer. This is followed by highlighted text showing where to download the data set used for the paper. They can be found in sections Data Availabilty: RP-UHPLC/MS Phase 2 and Supplementary Information: Supplementary Data 1 to 20. Right figure shows the use of the published data set to create a Quarto interactive document with the use of plotly and trelliscopejs." width="90%" style="display: block; margin: auto;" /> .left[ .footnote[ Images from [Wolrab et. al. 2022](https://doi.org/10.1038/s41467-021-27765-9) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Column Of Plots Use [`dplyr::mutate`](https://dplyr.tidyverse.org/reference/mutate.html) and [`trelliscopejs::pmap_plot`](https://hafen.github.io/trelliscopejs/reference/map2_plot.html) to save [`plotly`](https://plotly.com/r/) plots as a new column. <img src="images/Vector_of_Plots.JPG" title="Figure showing how to create a new column containing a column of plots. dplyr mutate is used to create the new column called dilution panel. trelliscopejs pmap_plot is used to create the individual dilution plots in plotly. To print the dilution plot of the first row, type the command dilution_plot_table$dilution_panel[[1]]. The dilution plot results can be seen on the rightmost figure." alt="Figure showing how to create a new column containing a column of plots. dplyr mutate is used to create the new column called dilution panel. trelliscopejs pmap_plot is used to create the individual dilution plots in plotly. To print the dilution plot of the first row, type the command dilution_plot_table$dilution_panel[[1]]. The dilution plot results can be seen on the rightmost figure." width="100%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## `trelliscopejs` cognostics Providing metadata information as `trelliscopejs` cognostics can help to improve the user experience. Refer to the Quarto [
](https://jauntyjjs.github.io/Trelliscopejs_In_Quarto_Example/) [
](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Example) example on how to do it. <img src="images/Cognostics.JPG" title="Left figure shows how to find the list of cognostics in a result generated by trelliscopejs. Just click on the information button beside the trellis plot title. In the example, the title is Injection_Sequence_Plot. Following left bottom figure shows a filter panel with the cognostic information of the product ion button. The cognostics is displayed as 'ions created from fragmentation of the precursor ions' when the mouse if hover on the product ion button. Right figure shows a Quarto document telling users how to create trelliscopejs cognostics from metadata information." alt="Left figure shows how to find the list of cognostics in a result generated by trelliscopejs. Just click on the information button beside the trellis plot title. In the example, the title is Injection_Sequence_Plot. Following left bottom figure shows a filter panel with the cognostic information of the product ion button. The cognostics is displayed as 'ions created from fragmentation of the precursor ions' when the mouse if hover on the product ion button. Right figure shows a Quarto document telling users how to create trelliscopejs cognostics from metadata information." width="80%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Results Distribution To export a `trelliscopejs` object. <img src="images/Distribution1.JPG" title="Figure showing three steps on how to export a trelliscopejs object. First, set the working directory to be your project folder. Next, call the script that generates the trelliscopejs object on the R console. Do note that before calling the script on the R console, users must give the name of the output folder to the path parameters as well as set self_contained to false in the trelliscope function. A correct execution will results in a desired folder being created. The folder should contain two folders called appfiles and lib respectively and a html file called index. Double clicking on the html file should open the trelliscopejs results. The last step is to compress the whole output folder as a zip file." alt="Figure showing three steps on how to export a trelliscopejs object. First, set the working directory to be your project folder. Next, call the script that generates the trelliscopejs object on the R console. Do note that before calling the script on the R console, users must give the name of the output folder to the path parameters as well as set self_contained to false in the trelliscope function. A correct execution will results in a desired folder being created. The folder should contain two folders called appfiles and lib respectively and a html file called index. Double clicking on the html file should open the trelliscopejs results. The last step is to compress the whole output folder as a zip file." width="70%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Results Distribution To export a Quarto document with `trelliscopejs` object. <img src="images/Distribution2.JPG" title="Figure showing three steps on how to export a Quarto document containing trelliscopejs objects. First, set the working directory to be your project folder. Next, click on the Render button to render the Quarto script. Before rendering the script, users must give the name of the output folder to the path parameters as well as set self_contained to false in the trelliscope function. In addition, self-contained must be set to false on the Quarto YAML header at the top of the Quarto script. The trelliscope function should output a folder named after what user put in the path parameters. The Quarto knitr engine should generate relevant folders such as a folder titled images, a folder titled name of Quarto script_files and a html file titled name of Quarto script_file.html.being created. The last step is to compress all these output files and folders as a zip file." alt="Figure showing three steps on how to export a Quarto document containing trelliscopejs objects. First, set the working directory to be your project folder. Next, click on the Render button to render the Quarto script. Before rendering the script, users must give the name of the output folder to the path parameters as well as set self_contained to false in the trelliscope function. In addition, self-contained must be set to false on the Quarto YAML header at the top of the Quarto script. The trelliscope function should output a folder named after what user put in the path parameters. The Quarto knitr engine should generate relevant folders such as a folder titled images, a folder titled name of Quarto script_files and a html file titled name of Quarto script_file.html.being created. The last step is to compress all these output files and folders as a zip file." width="65%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Results Distribution Exported examples are found under the [Releases](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Example/releases) section in the below [GitHub page](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Example). <img src="images/Distribution3.JPG" title="Figure showing a GitHub page highlighting where the Releases section is. Double clicking on the Releases section will bring users to the exported examples which can be downloaded as zip files." alt="Figure showing a GitHub page highlighting where the Releases section is. Double clicking on the Releases section will bring users to the exported examples which can be downloaded as zip files." width="190%" style="display: block; margin: auto;" /> .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ] --- ## Enjoy The Conference .pull-left[ Summary - Quality control samples are useful to check for unwanted variation in a targeted lipidomics workflow. - [`plotly`](https://plotly.com/r/) and [`trelliscopejs`](https://hafen.github.io/trelliscopejs/) can help to explore many interactive plots in an effective way. - Hope that the Quarto [
](https://jauntyjjs.github.io/Trelliscopejs_In_Quarto_Example/) [
](https://github.com/JauntyJJS/Trelliscopejs_In_Quarto_Example) example and advice provided are useful. ] .pull-right[ <img src="images/business-team.JPG" title="Figure showing two workers praising the presenter for providing a good visualisation report." alt="Figure showing two workers praising the presenter for providing a good visualisation report." width="100%" style="display: block; margin: auto;" /> ] .left[.footnote[ Images by [Amonrat Rungreangfangsai](https://www.vecteezy.com/members/amy1313) [Xaringan](https://github.com/yihui/xaringan) Slide Template by [Sharla Gelfand](https://github.com/sharlagelfand/sharstudioconf) [
](https://github.com/sharlagelfand) [
](https://sharla.online) [
](https://twitter.com/sharlagelfand) [
](https://www.youtube.com/watch?v=JThd3YYQXGg) ] ] .center[.footnote[https://jauntyjjs.github.io/RMedicine2022 [
](https://jauntyjjs.github.io/RMedicine2022) [
](https://github.com/JauntyJJS/RMedicine2022) [
](https://jauntyjjs.github.io/RMedicine2022/index.pdf)] ]