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]]
______________________________________________ R-help@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.