Publications by Duong Tran
Swimming Plot with ggplot2
Swimming plots are common in Oncology Clinical Trials. There is an R package (swimplot) for this but here I present an example that was done with ggplot2. While this is probably more effort to do, it is of course more customizable – note the plot shows two switchable treatments with different dosage levels. Swimming Plot ...
333 sym 1 img
Tornado (Butterfly) Plot with ggplot2
Tornado (butterfly) plots are a commonly seen type of barchart - here I am presenting an example done with ggplot2 with the help of the patchwork package. Tornado Plot ...
178 sym 1 img
Clinical Graph - Risk Difference Plot with ggplot2
This is a Risk Difference plot sometime seen in Clinical Trial report. Here I replicate a similar SAS plot (see https://blogs.sas.com/content/graphicallyspeaking/files/2016/08/Risk_Diff_Plot.png) with ggplot2. ...
218 sym 1 img
Clinical Graph - Change in Tumor Size and Treatment Outcome Plot with ggplot2
This plot is sometime seen in Clinical Trial report. Here I replicate a similar SAS plot (see link) with ggplot2. https://blogs.sas.com/content/graphicallyspeaking/2017/07/30/clinical-graphs-waterfall-plot) ...
215 sym 1 img
Create Beautiful Static Tables with R
Introduction There are some R packages that create pretty tables but designed for HTML. This offers rich stylings but not so easy to save as a static PNG image. As such these packages (e.g. formattable, reactablefmtr and gt etc.) do not offer this functionality or at best inadequately. However there is a work-round via the webshot package. This ...
861 sym 7 img
Adverse Events Plots with R
Introduction These are some plots you will find in Clinical Reporting. While they are relate to Adverse Events (AEs) you could of course apply these layouts to other topics. All these were done with selective R packages, and arguably “easier” to do than in SAS. ______________________________________________________ Figure 1 _______________...
478 sym 3 img
Forest Plots with R
Introduction Forest plots are common in scientific publications and Clinical Reports and there are many R packages that offer this functionality though ‘most’ are not so easy to customise. Nevertheless when you find one that fits your needs it can save a huge amount of time from creation from scratch. I am presenting some such cases below. ...
420 sym 5 img
Dot (Dumbbell) Plots
Introduction Bar plots are very common but on some circumstances alternative dot, also known as dumbbell or Cleveland plots are preferred, and this post presents examples to demonstrate this. Plot 1 Plot 2 Plot 3 (source: https://mbounthavong.com/blog/tag/Cleveland+dot+plots) ...
314 sym 3 img
ggplot2 with Axis-Table
Introduction Often it is desirable or even necessary to plot axis-tables within plots, and ideally they should be aligned with the ticks points. This post presents some such cases, produced from ggplot2. Plot 1 Plot 2 Plot 3 ...
262 sym 3 img
Truchet Tiles
Introduction These ae truchet tiles created from the truchet R package.The colours in these examples were manually edited. Tile 1 Tile 2 Tile 3 Tile 4 Tile 5 ...
226 sym 5 img