2013-06-03 15 views

回答

28

是的!設置pt.cex = 1和更改cex只要你想在:

plot(c(1,1)) 
legend("topleft", "Legend", cex=1.3, pch=1, pt.cex = 1) 
5

您可以獨立於圖例的其餘部分設置點的cex。儘管如此,這仍然會使盒子變小。你想要做的更具體的例子可能會有所幫助。然而,看看是否能解決您的問題:

plot(rnorm(10)) 
legend("top", legend="test", pch=21) #everything is normal sized (cex=1 default from par()) 
legend("topleft", legend="test", pch=21, cex=0.5) #everything is small 
legend("topright", legend="test", pch=21, pt.cex=1, cex=0.5) #the point is normal, but the rest is small 

祝您好運:)