I found this graph from literature and it's an excellent way to illustrate similar types of ideas in my opinion. I would like to draw this type of graph in my work but I couldn't find the proper function in R. The graph doesn't look complicated, there should be a function in R to accomplish this task. Does anyone have a clue?