Hi, A very simple thing that I'm unable to do. I did look at the help but .... While putting a legend on a plot, I don't wish to have the enclosing border surrounding the words (as given below). Tried to use the following, but didn't help : legend (locator(1), border=FALSE, fill=FALSE, "Important ones") legend (locator(1), border=NILL, fill=NILL, "Important ones") Thank you. regards, Chintanu [[alternative HTML version deleted]]
Hi?Chintanu, Try this: legend (locator(1), "Important ones", box.col=NA) Regards, Pascal ----- Mail original ----- De?: Chintanu <chintanu at gmail.com> ??: r-help at r-project.org Cc?: Envoy? le : Jeudi 8 mars 2012 14h52 Objet?: [R] legend Hi, A very simple thing that I'm unable to do. I did look at the help but .... While putting a legend on a plot, I don't wish to have the enclosing border surrounding the words (as given below). Tried to use the following, but didn't help? : legend (locator(1), border=FALSE, fill=FALSE, "Important ones") legend (locator(1), border=NILL, fill=NILL, "Important ones") Thank you. regards, Chintanu ??? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On 08/03/12 18:52, Chintanu wrote:> Hi, > > A very simple thing that I'm unable to do. I did look at the help but .... > > While putting a legend on a plot, I don't wish to have the enclosing > border surrounding the words (as given below). > > Tried to use the following, but didn't help : > > legend (locator(1), border=FALSE, fill=FALSE, "Important ones") > > legend (locator(1), border=NILL, fill=NILL, "Important ones")RTFM. (Hint: Look at the ***bty*** argument to legend().) cheers, Rolf Turner
Thanks - Jason Connor, Rolf Turner and Pascal Oettli. Either of the following can remove the border surrounding the words. legend (locator(1), "Important ones", box.col=NA) legend (locator(1), " Important ones ", bty="n") regards, Chintanu [[alternative HTML version deleted]]