On 18/05/2007 7:33 PM, Judith Flores wrote:
> Hi,
> 
>    I have a set of 4 graphs and I need to add a legend
> that is shared by those 4 graphs. This is what I
> tried:
> 
>> locator(1) # I placed the cursor in the center of the
> 4 graphs
> $x
> [1] 9.299001
> 
> $y
> [1] 226.3201
> 
> 
>> legend(9.3,226.3,"and the rest of the legend
> arguments")# but the legend didn't show.
> 
>     The legend only appears when I place in inside any
> of the for plots. How can I place it outside these
> plots, in the center.

RSiteSearch("legend outside")

suggests using par(xpd=TRUE).

Duncan Murdoch

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to