I know there are a few answered questions relating to timeseries and multiple dataframes, but I cant seem to figure this out.
I would like to plot time stamped data of 4 different pressure senors against time (column pa). I have 4 dfs of time stamped pressure readings from the same experiment. However, the sensors collected data at unequal times and the length of the columns are unequal due to sensor failures and other blips in the data.
These two aspects have prevented me from successfully creating a graph containing all 4 sensors' data. All of the df are of unequal number of observations but within the same range, but they differ at the seconds level. Would the time resolution need to be changed to hours, for example?
This is what the df looks like: PA_1 n=1097361
time pa wifi
1 2014-09-01 16:21:00 100.620 1
2 2014-09-01 17:20:33 100.572 1
3 2014-09-01 18:20:05 100.561 0
4 2014-09-01 19:19:38 100.523 0
5 2014-09-01 20:19:11 100.511 1
6 2014-09-01 21:18:43 100.534 1
PA_2: n=914364
time pa wifi
1 2014-09-01 15:25:05 NA 1
2 2014-09-01 15:25:09 100.798 1
3 2014-09-01 15:25:11 100.792 0
4 2014-09-01 15:25:15 100.791 0
5 2014-09-01 15:25:18 100.790 1
6 2014-09-01 15:25:20 100.791 1
PA_3 n=963527
time pa wifi
1 2014-09-01 15:25:02 100.832 1
2 2014-09-01 15:25:05 100.832 1
3 2014-09-01 15:25:08 100.825 0
4 2014-09-01 15:25:11 100.831 0
5 2014-09-01 15:25:14 100.830 1
6 2014-09-01 15:25:17 100.836 1
PA_4: n = 1061117
time pa wifi
1 2014-09-01 15:25:00 100.690 1
2 2014-09-01 15:25:04 100.683 1
3 2014-09-01 15:25:07 100.685 0
4 2014-09-01 15:25:11 100.687 0
5 2014-09-01 15:25:14 100.682 1
6 2014-09-01 15:25:18 100.684 1
Also, a dichotomous variable "wifi" was added to the df to denote when wifi was on or off during the experiment.Two of the sensors were exposed to wifi while two were outside of the wifi signal. I would like to display this in a graph as well. Perhaps by shading the region or increasing the size of the lines when wifi was on during the experiment, but I am not too sure how to do this. To illustrate this, I edited the middle 2 wifi entries in the examples, but wifi was on for periods of 10 days at a time, not a few seconds.
Thanks
edit: added examples of each df and added a few explinations