I am trying to come up with a way to plot the following graph in R. I have looked up a lot but did not find a solution.
This is an example of how data are: