I was asked to add shadows to a dashed-line in R. It would be similar to this image I found on-line, except it is for non-solid lines:
I did not find any specific control/package for this purpose. If it was a solid line that I needed a shadow for, I would have simulated the shadow using another line with different opacity and thickness. But it seems for the non-solid lines (dashed, dotted, etc) this workaround won't work, since their gaps won't match as you change the thickness.
Any ideas?
Image is copied from here only for the sake of clarity.