I have created a plot that requires a legend with multiple line types. I wish to make the lines in the legend vertical as opposed to horizontal (to match with their presentation in the histogram). I have tried utilizing the pch="I" function but this only creates a cross-hair effect in my legend. I want to retain all the information from the legend (line color and line types) however, I want them to be represented vertically as opposed to horizontally. I believe the pch function likely needs to be integrated into the lty function, I'm just not sure where.
Here is the code I used while creating the legend in the picture
legend("bottomright",
legend= c("observed mean", "simulated mean", "95% quantile"), inset = c(-0.39,0),
col = c("red", "red", "dodgerblue2"),
lty = c(1, 4, 33), box.lty = 0, xpd = TRU