[R] (no subject)

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Tue Jul 10 00:12:33 CEST 2018


Hi Laura,
Here's a basic method:

lsdf<-read.table(text="Bird Date Latitude Longitude
eb80976 16/07/2012      50.99   -5.85
eb80976 17/07/2012      52.09   -4.58
eb80976 18/07/2012      49.72   -5.56
eb80976 19/07/2012      51.59   -3.17
eb80976 20/07/2012      52.45   -2.03
eb80976 21/07/2012      56.015  -10.51",
header=TRUE)
library(maps)
map("world",xlim=c(-20,10),ylim=c(45,60))
mtext(side=3,cex=1.5,text="Migration of puffin eb80976",line=2)
lines(lsdf$Longitude,lsdf$Latitude)
library(plotrix)
boxed.labels(lsdf$Longitude,lsdf$Latitude,lsdf$Date,border="white",cex=0.7)
box()
axis(1)
axis(2)

Jim


On Mon, Jul 9, 2018 at 10:13 PM, Laura Steel <laura.steel using magd.ox.ac.uk> wrote:
> I am a beginner to R and I need to map some Atlantic puffin migration routes
> onto a map of the Northern Hemisphere. I have a latitude and longitude point
> per bird, per day. I would like to be able to plot the routes of all my
> birds on one map and ideally so that I can see at which date they are at
> each location.
>
> This is a shortened version of my data for one bird only.
>
> Bird             Date              Latitude     Longitude
> eb80976 16/07/2012      50.99   -5.85
> eb80976 17/07/2012      52.09   -4.58
> eb80976 18/07/2012      49.72   -5.56
> eb80976 19/07/2012      51.59   -3.17
> eb80976 20/07/2012      52.45   -2.03
> eb80976 21/07/2012      56.015  -10.51
>
> Any help would be much appreciated. I am not totally sure where to start!
> Many thanks.
>
>
>         [[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