R

Webfonts in ggplot2

Thanks to Hadley’s ggplot2 package, we are no longer confined to base graphics plots in R. However, by default all fonts are generated using the ‘Helvetica’ family. Now this is a great sans serif font, as evidenced by the fact that it is use literally everywhere in everything. But …

Shiny Progress Bars

Lately, I have been working on developing a friendly shiny app around a mathematical model to enable non-modellers to get to grips with the model, play around and perhaps learn something too. This has really been as much about teaching myself Shiny as it has been about enabling others to interact …

Has the Apple Watch …

Overview Having owned an Apple Watch since early May, I have built up a substantial amount of data in Apple’s ‘HealthKit’, detailing my daily steps from in excess of a year prior to owning the watch to at least six months after. Therefore, a simple analysis of whether the watch has …

Interactive Dynamic …

As part of a new work package I am part of, we needed to develop a dynamic transmission model of HIV care that has a relatively user-friendly interface and that can be run on almost any device. The initial choice was to go with an Excel spreadsheet, and have a tab hidden in the background with the …

Calling R from a Python …

After spending several hours today trying to figure out how to call R from an instance of Python running on the departmental cluster, I figured that I better document this. Why bother? Some background on my problem. I have an individual-based model written in C++ that describes the HIV epidemic in …