Hello everyone, i’ve got a problem with my diagram’s legend. I know i should be able to figure it out by reading the ‘plot’ and ‘legend’ reference. However nothing works so it would be kind if anyone could point me to the necessary parameters. The problem is that i’m moving the legend using the ‘inset’-parameter so it does not overlap with the graph. However it vanishes outside the graph, so I’ve got to set the margin width a little bigger. The “topright” etc. parameters also do not work for me because they put the legend inside the diagram where it overlaps with the graph. I would appreciate any help very much! Best Wishes Dave [[alternative HTML version deleted]]
I figured it out: you have to pass the mar-argument to the plot function and than you may position the legend via inset. Have a nice day! From: David Zastrau Sent: Thursday, February 16, 2012 12:50 PM To: r-help@R-project.org Subject: Legend vanishes when placed outside the graph Hello everyone, i’ve got a problem with my diagram’s legend. I know i should be able to figure it out by reading the ‘plot’ and ‘legend’ reference. However nothing works so it would be kind if anyone could point me to the necessary parameters. The problem is that i’m moving the legend using the ‘inset’-parameter so it does not overlap with the graph. However it vanishes outside the graph, so I’ve got to set the margin width a little bigger. The “topright” etc. parameters also do not work for me because they put the legend inside the diagram where it overlaps with the graph. I would appreciate any help very much! Best Wishes Dave [[alternative HTML version deleted]]
On Feb 16, 2012, at 6:50 AM, David Zastrau wrote:> Hello everyone, > > i?ve got a problem with my diagram?s legend. I know i should be able > to figure it out by reading the ?plot? and ?legend? reference. > However nothing works so it would be kind if anyone could point me > to the necessary parameters. > > The problem is that i?m moving the legend using the ?inset?- > parameter so it does not overlap with the graph. However it vanishes > outside the graph, so I?ve got to set the margin width a little > bigger.Have your read what ?par says about "xpd"?> > The ?topright? etc. parameters also do not work for me because they > put the legend inside the diagram where it overlaps with the graph. > > I would appreciate any help very much! > > Best Wishes > > Dave > [[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.David Winsemius, MD West Hartford, CT