I have data samples, that have a magnitude, with an associated time & date of when the sample was taken.
I would like to plot these datapoints over time, but would like the datapoints spaced, proportionally to the time they were sampled.
Essentially I have a person that is taking various numbers of readings per day, at inconsistent time periods.
Any ideas on how to create this time plot?
Example Data:
Mag : Time , Date
4.0 in : 11:12:02 , 11/11/21
4.3 in : 13:27:01 , 11/11/21
7.5 in : 14:01:45 , 11/11/21
2.1 in : 01:27:54 , 11/13/21
1.4 in : 16:32:41, 11/13/21
0.7 in : 14:12:09, 11/14/21
0.8 in : 14:12:13, 11/14/21
I would like to either sample and hold (til next datapoint), or (preferably) if possible, connect each point of the trace with a linear line, and apply a smoothing function, so there are no abrupt features in the line plot.
Once I get this plotted, I would also like to possibly resample and/or integrate the area under the curve... but that can be a task for another day.
Thanks!