[R] Legend Outside Plot Dimension
Jacques VESLOT
jacques.veslot at cirad.fr
Thu Jan 19 06:15:45 CET 2006
use "xpd" argument in par(), as follows:
> ?par
> par(xpd=T, mar=par()$mar+c(0,0,0,4))
> plot(1,1)
> legend(1.5,1,"point",pch=1)
Abd Rahman Kassim a écrit :
>Dear All,
>
>I'm trying to attach a legend outside the plot (Inside plot OK), but failed. Any help is very much appreciated.
>
>Thanks.
>
>
>Abd. Rahman Kassim, PhD
>Forest Management & Ecology Program
>Forestry & Conservation Division
>Forest Research Institute Malaysia
>Kepong 52109 Selangor
>MALAYSIA
>
>*****************************************
>
>Checked by TrendMicro Interscan Messaging Security.
>For any enquiries, please contact FRIM IT Department.
>*****************************************
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
More information about the R-help
mailing list