Skip to content
Prev 303019 / 398503 Next

Fill pattern for Boxplots?

legend() supports density= and angle= arguments. For example, 

plot(1, 1, type="n")
legend("topright", c("Slant Left", "Slant Right"), density=c(20, 20),
     angle=c(135, 45))

You may want to use larger density values than I used in my earlier post
since the legend boxes are pretty small.

-------
David