Re: [R] Categorical bubble plot

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Thu, 14 Apr 2011 13:39:59 -0700 (PDT)


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

> From: Jurgens de Bruin <debruinjj_at_gmail.com>
> Subject: [R] Categorical bubble plot
> To: r-help@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.
>



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. Received on Thu 14 Apr 2011 - 20:46:21 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 Thu 14 Apr 2011 - 21:00:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive