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 > > >
Hi I think you need to use par(xpd=TRUE). Try to search archives as similar question was answered few days ago. HTH Petr On 19 Jan 2006 at 12:19, Abd Rahman Kassim wrote: From: "Abd Rahman Kassim" <rahmank at frim.gov.my> To: <r-help at stat.math.ethz.ch> Date sent: Thu, 19 Jan 2006 12:19:30 -0800 Subject: [R] Legend Outside Plot Dimension> > 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.htmlPetr Pikal petr.pikal at precheza.cz
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]]