Search code examples
rlegendpch

make pch symbols bigger in legend in R


Is there a way ONLY to make the pch symbols bigger using this piece of code? I cant seem to figure this out.

plot(1)
legend("topright", legend=c(1,2,3,4,5,6),
       pch=c(20), col=c("red", "yellow", "green", "violet", "skyblue", "cyan"),
       title="number of studies", pt.cex=1.2)

enter image description here


Solution

  • You can set pt.cex inside legend to enlarge the points.