Re: [R] Positioning a legend via X and Y coordinates

2009-05-06 Thread Duncan Murdoch
On 5/6/2009 1:08 PM, Steve Murray wrote: Dear R Users, I'm able to display a legend using the following code: legend("topright", c("Simulation", "Observation"), fill=2:3, bty="n") However, this causes the legend to be positioned too close to the bars in my barplot. I'd like to move the lege

[R] Positioning a legend via X and Y coordinates

2009-05-06 Thread Steve Murray
Dear R Users, I'm able to display a legend using the following code: > legend("topright", c("Simulation", "Observation"), fill=2:3, bty="n") However, this causes the legend to be positioned too close to the bars in my barplot. I'd like to move the legend up slightly. I have been trying to det