Full_Name: Elizabeth Purdom Version: 1.9.1 OS: Windows XP Submission from: (NULL) (171.64.102.199) It would be nice if legend had the option of some default locations you could choose instead of entering specific coordinates, like "topleft", "topright","topcenter", etc. based on par("usr") coordinates. I know I've wanted it so often I've made my own simple non-robust wrap-around, so I don't have to remember or parse the xjust and yjust options necessary to make it work. Of course there should be the option of entering in your own coordinates. Also it would be nice to be able to put a optional title inside your legend. Currently I just make my title the first value in my legend vector, and then fix the other options so no symbols plot next to it. But this isn't always a pretty result and can be a pain if your symbols are complicated. Thanks, Elizabeth
On Thu, 2 Dec 2004 19:59:53 +0100 (CET), epurdom@stanford.edu wrote :>Full_Name: Elizabeth Purdom >Version: 1.9.1 >OS: Windows XP >Submission from: (NULL) (171.64.102.199) > > >It would be nice if legend had the option of some default locations you could >choose instead of entering specific coordinates, like "topleft", >"topright","topcenter", etc. based on par("usr") coordinates. I know I've wanted >it so often I've made my own simple non-robust wrap-around, so I don't have to >remember or parse the xjust and yjust options necessary to make it work. Of >course there should be the option of entering in your own coordinates. > >Also it would be nice to be able to put a optional title inside your legend. >Currently I just make my title the first value in my legend vector, and then fix >the other options so no symbols plot next to it. But this isn't always a pretty >result and can be a pain if your symbols are complicated.I think those are both great suggestions, and not too hard to do. I'll put them into R-devel (if someone else hasn't already done so). Duncan Murdoch
<epurdom <at> stanford.edu> writes: : : Full_Name: Elizabeth Purdom : Version: 1.9.1 : OS: Windows XP : Submission from: (NULL) (171.64.102.199) : : It would be nice if legend had the option of some default locations you could : choose instead of entering specific coordinates, like "topleft", : "topright","topcenter", etc. based on par("usr") coordinates. I know I've wanted : it so often I've made my own simple non-robust wrap-around, so I don't have to : remember or parse the xjust and yjust options necessary to make it work. Of : course there should be the option of entering in your own coordinates. Check out smartlengend in package gtools which is part of the gregmisc bundle. I agtee its a useful feature and it would be nice if that feature migrated to the base graphics. : : Also it would be nice to be able to put a optional title inside your legend. : Currently I just make my title the first value in my legend vector, and then fix : the other options so no symbols plot next to it. But this isn't always a pretty : result and can be a pain if your symbols are complicated. : : Thanks, : Elizabeth : : ______________________________________________ : R-devel <at> stat.math.ethz.ch mailing list : https://stat.ethz.ch/mailman/listinfo/r-devel : :
I'm also glad to see this features go into the standard packages. I think that it may be worthwhile to regularly 'nominate' features/functions present in other packages for 'promotion' into the standard R packages. -G> -----Original Message----- > From: r-devel-bounces@stat.math.ethz.ch > [mailto:r-devel-bounces@stat.math.ethz.ch]On Behalf Of Dirk > Eddelbuettel > Sent: Friday, December 03, 2004 10:39 AM > To: Duncan Murdoch > Cc: Warnes, Gregory R; r-devel@stat.math.ethz.ch > Subject: Re: [Rd] Wishlist: simple legend options (PR#7400) > > > On Fri, Dec 03, 2004 at 08:54:54AM -0500, Duncan Murdoch wrote: > > On Fri, 3 Dec 2004 03:08:11 +0000 (UTC), Gabor Grothendieck > > <ggrothendieck@myway.com> wrote : > > > > > <epurdom <at> stanford.edu> writes: > > > > > >: > > >: Full_Name: Elizabeth Purdom > > >: Version: 1.9.1 > > >: OS: Windows XP > > >: Submission from: (NULL) (171.64.102.199) > > >: > > >: It would be nice if legend had the option of some > default locations you could > > >: choose instead of entering specific coordinates, like "topleft", > > >: "topright","topcenter", etc. based on par("usr") > coordinates. I know I've > > >wanted > > >: it so often I've made my own simple non-robust > wrap-around, so I don't have > > >to > > >: remember or parse the xjust and yjust options necessary > to make it work. Of > > >: course there should be the option of entering in your > own coordinates. > > > > > >Check out smartlengend in package gtools which is part of > the gregmisc > > >bundle. I agtee its a useful feature and it would be nice if that > > >feature migrated to the base graphics. > > > > I've put both the title and keyword placement of the legend into > > legend() now, in R-devel. I was unaware of the > smartlegend() function > > (which is actually in gplots); I've just now added an "inset" > > parameter like it has. The specification for the location > is slightly > > different than smartlegend() uses. Because legend() handles the > > second parameter in a strange way and I didn't want to fiddle with > > that, I put the specification entirely in the first parameter: you > > say you want the legend at one of "bottomright", "bottom", > > "bottomleft", "left", "topleft", "top", "topright", > > "right", or "center". > > > > This should be downloadable tomorrow from the CRAN mirrors. > > Sweet, thanks. I'm probably not the only one who wrote simple little > wrappers for that at one point. Good to have a more general > solution in > base. > > Dirk > > -- > If your hair is standing up, then you are in extreme danger. > -- http://www.usafa.af.mil/dfp/cockpit-phys/fp1ex3.htm > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}