(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

l.steel
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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Dylan Distasio
You'll probably get a more detailed reply from someone with more expertise,
but have you looked at something like what this article proposes:

https://medium.com/fastah-project/a-quick-start-to-maps-in-r-b9f221f44ff3

On Mon, Jul 9, 2018 at 1:53 PM Laura Steel <[hidden email]>
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]]
>
> ______________________________________________
> [hidden email] 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Bert Gunter-2
Laura:

1. We generally do not do code for you; we expect you to show your efforts
first.

2. You might want to post this on the r-sig-geo list instead. They
specialize in such issues, so that you are more likely to find helpful
advice there.

3. There are many good R tutorials on the web. e.g. see here:
https://www.rstudio.com/online-learning/
As a "beginner," if you have not already done so, you should avail yourself
of them before posting further.


Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Mon, Jul 9, 2018 at 11:03 AM, Dylan Distasio <[hidden email]> wrote:

> You'll probably get a more detailed reply from someone with more expertise,
> but have you looked at something like what this article proposes:
>
> https://medium.com/fastah-project/a-quick-start-to-maps-in-r-b9f221f44ff3
>
> On Mon, Jul 9, 2018 at 1:53 PM Laura Steel <[hidden email]>
> 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]]
> >
> > ______________________________________________
> > [hidden email] 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.
> >
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Hasan Diwan-2
In reply to this post by l.steel
https://imgur.com/a/0f72Fsz results from the following code:

ggplot()+borders("world", colour="gray50",
fill="gray50")+geom_line(aes(x=Longitude, y=Latitude), birds)

It's ugly, but it will give you a starting point. -- H
On Mon, 9 Jul 2018 at 10:53, Laura Steel <[hidden email]> 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]]
>
> ______________________________________________
> [hidden email] 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.



--
OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Jeff Newmiller
perhaps geom_path rather than geom_line?

On July 9, 2018 12:40:15 PM PDT, Hasan Diwan <[hidden email]> wrote:

>https://imgur.com/a/0f72Fsz results from the following code:
>
>ggplot()+borders("world", colour="gray50",
>fill="gray50")+geom_line(aes(x=Longitude, y=Latitude), birds)
>
>It's ugly, but it will give you a starting point. -- H
>On Mon, 9 Jul 2018 at 10:53, Laura Steel <[hidden email]>
>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]]
>>
>> ______________________________________________
>> [hidden email] 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.

--
Sent from my phone. Please excuse my brevity.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Jim Lemon-4
In reply to this post by l.steel
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 <[hidden email]> 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]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

R help mailing list-2
In reply to this post by l.steel
Maybe I missed it, but I didn't see anyone suggest a visit to the CRAN Spatial task view. This would be a good place to start learning how to work with spatial data in R.

-Don

--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
Lab cell 925-724-7509
 
 

´╗┐On 7/9/18, 5:13 AM, "R-help on behalf of Laura Steel" <[hidden email] on behalf of [hidden email]> 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]]
   
    ______________________________________________
    [hidden email] 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.
   

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Thierry Onkelinx
In reply to this post by l.steel
Dear Laura,

I came across the anipaths package
(https://cran.r-project.org/web/packages/anipaths/vignettes/anipaths.html)
It might be useful for you.

Best regards,


ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE
AND FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
[hidden email]
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no
more than asking him to perform a post-mortem examination: he may be
able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does
not ensure that a reasonable answer can be extracted from a given body
of data. ~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////




2018-07-09 14:13 GMT+02:00 Laura Steel <[hidden email]>:

> 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]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.