I have basically this very odd type of data frame:
The first column is the name of the States (say I have 3 states), the second to the last column (say I have 5 columns) contains some values recorded at different dates (not continuous). I want to create a graph that plots the values for each State on the range of the dates that starts from the earliest and end in the latest dates (continuous).
The table looks like this:
state | 2020-01-01 | 2020-01-05 | 2020-01-06 | 2020-01-10 |
---|---|---|---|---|
AZ | NA | 0.078 | -0.06 | NA |
AK | 0.09 | NA | NA | 0.10 |
MS | 0.19 | 0.21 | NA | 0.38 |
"NA" means there is not data.
How do I produce this graph in which the x axis is from 2020-01-01 to 2020-01-10 (continuous), the y axis contains the changing values (as points) of the three States, each state occupies its separate (segmented) y-axis?
Thank you.