Blog Archives

Automatic drug utilization reports with R and ggplot2

September 18, 2012
By
Automatic drug utilization reports with R and ggplot2

This program takes a data set of drug utilisation of 4 fictional drugs in 10 fictional hospitals and plots each time-series with a locally weighted regression (Lowess) trend line. It also places an time-series trend of the usage for each … Continue reading →

Read more »

R script to manipulate health data

June 3, 2012
By

Here is the code that fixed up the World Bank data export for use in Tableau. The databank spits out everything in an untidy format for grouping and aggregating. The reshape2 and plyr packages  make it easy to manipulate the whole set … Continue reading →

Read more »