Re: [R] proportional symbol map ggplot

From: Strategische Analyse CSD Hasselt <>
Date: Wed, 16 Mar 2011 11:47:46 +0100

Hello Scott,

Thank you for the tips (I have posted the issue on the google group too), but there's nothing on these or other websites that gives an answer on our question. Following the traditional used rules of making a symbol plot, the used symbols should have the same proportions, based on area, then the values have. Unfortunately, this is not so in the plots we make with the code below (scale_area).

Yours sincerely,

Ann Frederix

  There is a ggplot2 google groups mailing list that you may get more appropriate help from:

  and the ggplot2 website is very helpful
  On Monday, March 14, 2011 at 9:41 AM, Strategische Analyse CSD Hasselt wrote:


    we want to plot a proportional symbol map with ggplot. Symbols' area should     have the same proportions as the scaled variable.     Hereby an example we found on . In this example     we see the proportions of the symbols' area are different from the     proportions of the scaled variable:

    crime <-
    read.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)

    proportion population Pennsylvania/Tennessee= 2.003     proportion symbols' area Pennsylvania/Tennessee= +/- 2.50

    proportion population California/Florida= 2.005     proportion symbols' area California/Florida= +/-2.25

    What we would like is that the proportion of the symbols' area is also equal     to 2.0.

    We see the same in the legend:
    proportion population 1.6e+07 / 4.0e+06 = 4.0     proportion symbols' area 1.6e+07 / 4.0e+06= +/-5.0

    Thanks in advance!

    Ann Frederix
    Robbie Heremans mailing list     PLEASE do read the posting guide     and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 16 Mar 2011 - 13:03:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Mar 2011 - 13:10:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive