Hi, I need to optimize code in R. I already have my own code, but not in loop function. the code is for drawing a simple interval line plot. I had produced the graph I wanted but needed someone to optimize the code using for loop. The plot is attached here. I have all the basic code and data. Just need some polish and optimize it since I don't use 'for' loop in my basic code.