search for: crimeratesbystate2008

Displaying 1 result from an estimated 1 matches for "crimeratesbystate2008".

2011 Mar 14
2
proportional symbol map ggplot
...as the scaled variable. Hereby an example we found on http://www.r-bloggers.com/bubble-chart-by-using-ggplot2/ . In this example we see the proportions of the symbols' area are different from the proportions of the scaled variable: crime <- read.csv("http://datasets.flowingdata.com/crimeRatesByState2008.csv", header=TRUE, sep="\t") p <- ggplot(crime, aes(murder,burglary,size=population, label=state)) p <- p+geom_point(colour="red") +scale_area(to=c(1,20))+geom_text(size=3) Example: proportion population Pennsylvania/Tennessee= 2.003 proportion symbols' area Pen...