[R] MAP HELP

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Sun Apr 5 00:53:52 CEST 2020


Hi Anjaly,
Here is a very simple way to plot something like this. There are many
ways to do this and of course easier ways to automate the placement of
the points and labels.

library(maps)
library(plotrix)
map("world",xlim=c(13.548932,53.407331),ylim=c(70.824046,78.764113))
box()
segments(20,76,25,77)
points(25,77,pch=19)
boxed.labels(20,76,"Kraken\nn=2\nlat=20 lon=76\nlength=10-20M")
segments(40,72,51,71)
points(51,71,pch=19)
boxed.labels(40,72,"Herring\nn=20000\nlat=51 lon=70\nlength=15-20cm")

Jim

On Sun, Apr 5, 2020 at 6:10 AM anjaly menon <anjalygmenon9 using gmail.com> wrote:
>
> Hello,
>
> I have a dataset with latitude, longitude, station serial numbers of my
> fish samples collected from the Barents Sea. I need to plot out from where
> the samples are coming from using the latitude and longitude and the range
> of body sizes (length of fishes) using R.
> I installed packages like sp, maptools, mapdata, rgdal,shape, maps. Is
> there any code to do this task? Please let me know.
>
> Cheers
>
> --
> *Anjaly Govindankutty Menon*
> Erasmus Mundus Scholar
> Universite de Bordeaux, France
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list