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 5965563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:38:57+00:00 2026-05-22T19:38:57+00:00

I have three timestamped measurement series, taken over the same interval, but with different

  • 0

I have three timestamped measurement series, taken over the same interval, but with different actual timestamps. I’d like to show these three trajectories in a combined plot, but because the x-axis (timestamps) is different in each case, I’m having some trouble. Is there a way to do this without picking an x-axis to use and interpolating the y-values for the other two measurement series? I’m fairly new to R, but I feel like there’s something obvious I’m overlooking.

For example:

Series 1

Time    Value
1.023   5.786
2.564   10.675
3.678   14.678
5.023   17.456

Series 2

0.787   1.765
1.567   3.456
3.011   5.879
4.598   7.768

Series 3

1.208   3.780
2.478   6.890
3.823   9.091
5.125   12.769
  • 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-22T19:38:57+00:00Added an answer on May 22, 2026 at 7:38 pm

    With base graphics, you can use a combination of plot and points or lines:

    dat1 <- data.frame(Time = c(1.023, 2.564, 3.678, 5.023), Value = c(5.786, 10.675, 14.678, 17.456))
    dat2 <- data.frame(Time = c(0.787, 1.567, 3.011, 4.598), Value = c(1.765, 3.456, 5.879, 7.768))
    dat3 <- data.frame(Time = c(1.208, 2.478, 3.823, 5.125), Value = c(3.780, 6.890, 9.091, 12.769))
    
    with(dat1, plot(Time, Value, xlim = c(0,6), ylim = c(0,20)))
    with(dat2, points(Time, Value, col = "red"))
    with(dat3, points(Time, Value, col = "green"))
    

    Take a look at ?legend to add a legend. Or, learn ggplot2 and let it handle that part of it for you:

    library(ggplot2)
    library(reshape)
    plotdata <- melt(list(dat1 = dat1, dat2 = dat2, dat3 = dat3), "Time")
    
    qplot(Time, value, data = plotdata, colour = L1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three different users tables, and I would like to know what is
Have three divs in a container that I want to float over a large
i have three lists with the same number of elements in each other, i
I have a mysql table with three columns: username, location, timestamp. This is basically
Have three classes User, Group and Field. Many to many relationship on User /
I have three separate table variables in my Function, 1 of them is not
I have three files: lib.c lib.h => They should be built as a .so
i have three java based web application app1,app2 and app3 at production. All 3
I have three tables. I have to retrieve the data using Linq statement. My
I have three divs, within a content div. Container width 70%. Within that I

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.