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

  • SEARCH
  • Home
  • 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 6579695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:55:49+00:00 2026-05-25T15:55:49+00:00

I have a some GPS data from my Garmin I’d like to graph time

  • 0

I have a some GPS data from my Garmin I’d like to graph time scaled. I found some example on the ‘net for using ggplot2 to do this, but have had issues with it – I believe i might need to reformat my datetime column, but couldn’t figure it out searching ‘net and looking at the ggplot2 source code. Any help much appreciated.

> library(ggplot2)
> x <- read.csv("tst.csv",header=TRUE,colClasses="character")
> head(x)
  counter HeartRateBpm_AVG LastTimeStamp
1       1           102.25 9/3/2011 7:32
2       2           138.75 9/3/2011 7:33
3       3           138.75 9/3/2011 7:33
4       4           138.75 9/3/2011 7:33
5       5           138.75 9/3/2011 7:33
6       6           138.75 9/3/2011 7:34
> ggplot(data=x,aes(x=LastTimeStamp,y=HeartRateBpm_AVG)) + scale_x_date(format = "%S") + geom_line()
  • 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-25T15:55:49+00:00Added an answer on May 25, 2026 at 3:55 pm

    I do not believe you could have used that input process to get that data.frame. You only have one item in the “colClasses” vector. When I used your method, the result was not much different than if I had used readLines. Your date-time column is not printing as though it made it in in a manner that could be converted without a format-spec. Try instead:

    x <- read.csv(textConnection("  counter, HeartRateBpm_AVG, LastTimeStamp
     1 ,         102.25, 9/3/2011 7:32
     2  ,        138.75 ,9/3/2011 7:33
     3   ,       138.75, 9/3/2011 7:33
     4    ,      138.75 ,9/3/2011 7:33
     5     ,     138.75, 9/3/2011 7:33
     6      ,    138.75 ,9/3/2011 7:34"), 
             header=TRUE,  colClasses=c("numeric", "numeric", "character"))
    # Then the formating as date-time works well.
    x$LastTimeStamp2 <- as.POSIXct(x$LastTimeStamp, format="%m/%d/%Y %H:%M")
     head(x)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that records some data (time, user’s gps position etc). Now
I have some XML which contains records and sub records, like this: <data> <record
I have read up on GPS Real time tracking and found out several things
I have a gps receiver, which can send data (using gprs connection) to the
I have an app using the GPS data, I am using locationManager = (LocationManager)
I am using PHP to expose vehicle GPS data from a CSV file. This
I have a task to store large amount of gps data and some extra
I have a java application that stores some GPS data in a strange format:
I've been looking quite some time today to gather GPS coordinates from a Windows
I'm trying to store in a database some GPS data that I get from

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.