Re: [R] Bubble plot pie chart map

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Tue, 13 May 2008 12:03:11 -0600

Using just base graphics you can use the floating.pie function from the plotrix package, or the my.symbols function from the TeachingDemos package with your own symbol/plotting function. Pie charts are usually not very useful, there may be another type of symbol (see the symbols function) or plot (to use with my.symbols or subplot from the TeachingDemos package) that would convey the information better. One of the examples in ?subplot shows adding small barcharts to a map.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
(801) 408-8111




> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Davidson, D.
> Sent: Tuesday, May 13, 2008 6:09 AM
> To: R-help_at_stat.math.ethz.ch
> Subject: [R] Bubble plot pie chart map
>
> Hello,
>
> I am currently trying to show the abundance of two species of
> zooplankton within the North Sea as pie chart bubble plots. I
> followed Werner Wernersen's advice in R help
> (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48644.html)
> and used Paul Murrell's paper "Integrating Grid Graphics
> Output with Base Graphics Output" (in R News) to try and do
> this (using the gridBase package). It generally works well,
> except for when I try and put in the map of the coastline and
> the points with no zooplankton present (0 values of both
> plankton species). The following error comes up:
>
> "Error in gridPLT() : Figure region too small and/or viewport
> too large"
>
>
> and other errors along those lines. Can anyone suggest either
> what I'm doing wrong, or some other way to plot this?
>
>
> Many thanks
>
> Deborah
>
>
> Deborah Davidson
> PhD student
> School of Biological Sciences
> University of Aberdeen
> Aberdeen, AB24 2TZ
> Scotland
> Tel: +44 (0)1224 274106
> Email: deborah.davidson_at_abdn.ac.uk
>
>
> The University of Aberdeen is a charity registered in
> Scotland, No SC013683.
>
> ______________________________________________
> 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 Tue 13 May 2008 - 19:31:22 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 Tue 13 May 2008 - 20:31:57 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