2013-06-03 13 views

cevap

28

Evet !, pt.cex = 1 ayarlayın ve olduğu gibi istediğiniz kadar cex değiştirmek Best of:

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

Noktalar için cex'i lejantın geri kalanından ayrı olarak ayarlayabilirsiniz. Bu yine de kutuyu küçük yapacaktı. Yapmaya çalıştığınız şeyin daha spesifik bir örneği yardımcı olabilir. Bu sorunu çözer Ancak, bkz:

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 

şans :)

İlgili konular