[R] Legend Outside Plot Dimension

Abd Rahman Kassim rahmank at frim.gov.my
Fri Jan 20 00:42:19 CET 2006


Dear Jacques,

Thanks for the promt response.

Abd. Rahman
----- Original Message ----- 
From: "Jacques VESLOT" <jacques.veslot at cirad.fr>
To: "Abd Rahman Kassim" <rahmank at frim.gov.my>
Cc: <r-help at stat.math.ethz.ch>
Sent: Wednesday, January 18, 2006 9:15 PM
Subject: Re: [R] Legend Outside Plot Dimension



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
>
>
>



*****************************************

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.
***************************************** 


*****************************************

Checked by TrendMicro Interscan Messaging Security.
For any enquiries, please contact FRIM IT Department.




More information about the R-help mailing list