I would like to define a custom line type for a graph in R.
As a minimal working example, consider the following
plot(1:5,runif(5),type="l",lty="longdash")
which gives me just some random line (like the dashed black line in the picture below). Is there a way to instead make the dashes look like small arrows (like in the red example, which I constructed with illustrator)?


