Longer lines in legend ()

I have

plot(1,1) legend("bottomleft", c("A","B","C"), lwd=3, bty="n",lty=c(1,3,4)) 

Is it possible to make lines in a legend longer (R base only please)? It seems a little difficult to immediately see the difference lty = 3 and lty = 4 in the legend when the lines are so short. Increasing lwd does not help either.

thanks a lot

+6
source share
1 answer

You can set the argument seg.len .

 plot(1,1) legend("bottomleft", c("A","B","C"), lwd=3, bty="n",lty=c(1,3,4), seg.len=5 ) 
+9
source

Source: https://habr.com/ru/post/913840/


All Articles