Friday, 14 March 2014

Bubble charts in R....

Working through the exercises on pages 194 to 200. 

> symbols(crime$murder, crime$burglary, circles=radius, inches=0.35, fg="white", bg="red", xlab="Murder Rate", ylab="Burglary Rate")



add labels with the text command
> text(crime$murder, crime$burglary, crime$stat, cex=0.5)




This data set is from flowingdata.com and is quite useful. 
> crime <- read.csv("http://datasets.flowingdata.com/crimeRatesByState2005.tsv", header=TRUE, sep="\t")


I need to make a basic list of what I need to be able to do with R. 
This includes 
  • correlations
  • multiple correlations
  • adding trend curves
  • reporting on the stats. 
  • Kaplan Meier curves
  • Bubble plots
  • Strip plots
  • Word clouds (understand the stats)
I need my own cheat sheets. 

I need to get some of my own data to manipulate. 

Then I need to work out strategies (perhaps Illustrator - to make these plots look as good as possible. 

No comments:

Post a Comment