Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7666849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:56:28+00:00 2026-05-31T14:56:28+00:00

I am playing with RGooglemaps, and have been able to plot lines on a

  • 0

I am playing with RGooglemaps, and have been able to plot lines on a map. I loaded my lats and longs from a csv into a coords object.

I wanted to imply direction using: PlotArrowsOnStaticMap

defined as:

    PlotArrowsOnStaticMap(MyMap, lat0, lon0, lat1 = lat0, lon1 = lon0, TrueProj = TRUE, FUN = arrows, add = FALSE, verbose = 1,...)

I define lat0 as something like coords[,’lat’].
How do I give the lat1?

The value is the next row in the file – but how do I describle that relatively? (coords[+1,’lat’] in pseudocode.

Is there some basic reading I should be doing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:56:30+00:00Added an answer on May 31, 2026 at 2:56 pm

    An inelegant work around is to create new columns for your lat and long that are upshifted by one row compared to the initial rows. The value of the first row is wrapped to the bottom (or replaced by NA if this does not make sense).

    coords$lat.1<-coords$lat[c(2:length(coords$lat), 1)]
    coords$lon.1<-coords$lon[c(2:length(coords$lon), 1)]
    

    You now have two columns for lat (lat and lat1) and two columns for long (lon, lon1).

    with(coords, PlotArrowsOnStaticMap(lat0=lat, lon0=lon, lat1=lat1, lon1=lon1…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Playing around with Google Maps these days, with some directions. I have a map
Playing with log4net, I have seen the possibility to use a per-thread stack of
Playing with the new(ish) url rewriting functionality for web forms, but I'm running into
been playing around with ResolveClientUrl(~/Confirmation.aspx) and other methods.. I am tryin go get the
Im playing a little bit with heavy-client app. Imagine I have this model: class
been playing with this for a few hours and can't figure it out. jsFiddle
iam playing around with OPEN CV from Intel with the associated PHP Extensions. Works
Been playing with the Storm Emulator and the 4.7 JDE, for the life of
Been playing with Ruby on Rails for awhile and decided to take a look
Still playing with Chrome Extension and have a little problem when I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.