Skip to content

Instantly share code, notes, and snippets.

@northernjamie
Last active November 18, 2016 22:21
Show Gist options
  • Save northernjamie/4683bf5468069e8718bfef38b0454a1d to your computer and use it in GitHub Desktop.
Save northernjamie/4683bf5468069e8718bfef38b0454a1d to your computer and use it in GitHub Desktop.
ggplot(data = dfdrug, aes(x=reorder(areaname, -nratiodrug), y=nratiodrug, fill=areaname)) + theme_bw() + geom_bar(stat='identity') + theme(axis.text.x=element_text(angle=90,hjust=1,vjust=0.5)) + ggtitle('Drug-related Hospital Discharges 2012–2013 (Rate per 10,000 people)') + labs(x='Council Area', y='Rate per 100,000 people') + theme(legend.position='none')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment