Bubble plot pie chart map

View: New views
2 Messages — Rating Filter:   Alert me  

Bubble plot pie chart map

by Davidson, D. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


The University of Aberdeen is a charity registered in Scotland, No SC013683.

______________________________________________
R-help@... 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.

Re: Bubble plot pie chart map

by Greg Snow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
(801) 408-8111



> -----Original Message-----
> From: r-help-bounces@...
> [mailto:r-help-bounces@...] On Behalf Of Davidson, D.
> Sent: Tuesday, May 13, 2008 6:09 AM
> To: R-help@...
> 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@...
>
>
> The University of Aberdeen is a charity registered in
> Scotland, No SC013683.
>
> ______________________________________________
> R-help@... 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@... 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.