Skip to content
Back to formatted view

Raw Message

Message-ID: <50180.81520.qm@web38406.mail.mud.yahoo.com>
Date: 2011-04-14T20:39:59Z
From: John Kane
Subject: Categorical bubble plot
In-Reply-To: <BANLkTinZVknpzxE=VVOW-FROOzxA3BOCeA@mail.gmail.com>

I think using base graphics you would need to use numerical vectors to set the bubble positions.  However there is not reason that you could not suppress the axis labeling and apply your own.

This code does the first part using circles. There are probably better ways to do it but this should work.






See ?par xaxt and yaxt to suppress the labeling and have look at axis for how to add the category labels

--- On Thu, 4/14/11, Jurgens de Bruin <debruinjj at gmail.com> wrote:

> From: Jurgens de Bruin <debruinjj at gmail.com>
> Subject: [R] Categorical bubble plot
> To: r-help at r-project.org
> Received: Thursday, April 14, 2011, 9:48 AM
> Hi,
> 
> I do not have much R experience just the basics, so please
> excuse
> any obvious questions.
> 
> I would like to create bubble plot that have Categorical
> data on the x and y
> axis and then the diameter if the bubble the value related
> to x and y.
>  Attached to the email is a pic of what I would like to
> do.
> 
> I do hope someone can help me.
> 
> 
> -- 
> Regards/Groete/Mit freundlichen
> Gr??en/recuerdos/meilleures salutations/
> distinti saluti/siong/du? y?/??????
> 
> Jurgens de Bruin
> 
> -----Inline Attachment Follows-----
> 
> ______________________________________________
> R-help at r-project.org
> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>