Re: [R] plotting magnitude

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Wed, 19 Dec 2007 22:05:20 +1100

dkowalske_at_umassd.edu wrote:
> I am plotting fishing vessel positions and want these points to be
> relative in size to the catch at that point. Is this possible? I am just
> begining to use R and my search of the help section didnt help in this
> area. Heres what Im using so far
>
> xyplot(data$latdeg~data$londeg |vessek , groups=vessek,
> xlim=rev(range(69:77)),ylim=(range(35:42)), data=data,
> main=list ("Mackerel catches", cex=1.0),
> ylab="latitude", notch=T, varwidth=T,
> xlab="longitude", cex.axis=0.5,)
> any info would be appreciated
>
Hi,

What you might want is something like this:

library(maps)
data(world2MapEnv)
map("world2",xlim=c(110,160),ylim=c(-45,-10)) axis(1)
axis(2)
library(plotrix)

draw.circle(155,-30,1,col="red")
draw.circle(155,-32,1.2,col="blue")
draw.circle(153,-34,1.5,col="green")

where 1, 1.2, 1.5 are the relative sizes of catch. Oh, and you would probably want the North Atlantic part of the map...

Jim



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 Wed 19 Dec 2007 - 11:12:09 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 19 Dec 2007 - 11:30:20 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.