Visualising health profiles

Julian Flowers
25-10-2015

Health profiles

Profiling population health is an important part of public health practice in England

This basic app is an initial (and simple) attempt to improve visualisation

  • It takes one indicator
  • Plots a histogram
  • Adds a line with a slider

The data

The core dataset comes from Health Profiles
For the purposes of this exercise I have extracted a few key variables

hp3<-read.csv("hp3.csv")
head(hp3)
  X deprivation life.expectancy obesity smoking
1 1        9.43            83.6   22.38   18.90
2 2       20.33            81.7   25.83   18.43
3 3        8.94            83.6   28.39   18.78
4 4        8.78            83.9   24.11   16.21
5 5       24.12            82.1   29.34   20.06
6 6        6.31            84.5   25.31   26.41

Histogram of life expectancy

plot of chunk unnamed-chunk-2

Histogram of life expectancy with slider

See app here

plot of chunk unnamed-chunk-3