knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
In this vignette we will demo how to visualize data which is only available in summary format as it is coming from a published paper table or figure for example Figure 3 from this paper:
"Remdesivir for the Treatment of Covid-19 — Final Report"
{width=100%}
The data has been made available in a csv data file named remdesivirfig3.csv
library(ggquickeda) #load ggquickeda remdesivirdata <- read.csv("./remdesivirfig3.csv") # in vignette folder knitr::kable(remdesivirdata)
# from R launch the app with the data #run_ggquickeda(remdesivirdata) # if you have access the the app on a server browse to the file and load it
{width=70%}
{width=70%}
We still have to set text formatting options using the group of subtabs in the lower part of the page:
Default subtab: Facet Text Size/Angle/Face
Second subtab: Facet Text Justification
At this point you should have this graph:
{width=100%}
{width=50%}
While you can add another variable and manually drag and drop we will demo next another possibility to reorder yvalues using a statistic (e.g. median) of another variable (Subroupvalueorder):
{width=50%}
Select the Points, Lines subtab
Select the Median (PIs) subtab
{width=75%}
And now you should get the below plot !: {width=100%}
ggquickeda
As an example of even more advanced features consider the screenshot below where the Intervals Values are shown while the point Size is proportional to the N of patients. Some theme adjustments to customize the plot and legend were also done.
{width=100%}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.