[R] ggplot2: positioning legend on top of plot

2008-11-24 Thread Paul Emberson
Hi, With ggplot2 v0.8, how do I position a legend on top of the plot. Things like p + opts(legend.position=top) work ok. But p + opts(legend.position=c(0.5,0.5)) gives Error in as.character(x) : cannot coerce type 'closure' to vector of type 'character' so obviously I should be giving

Re: [R] ggplot2: positioning legend on top of plot

2008-11-24 Thread hadley wickham
Hi Paul, That's a bug - I'll look into it. Regards, Hadley On Mon, Nov 24, 2008 at 10:46 AM, Paul Emberson [EMAIL PROTECTED] wrote: Hi, With ggplot2 v0.8, how do I position a legend on top of the plot. Things like p + opts(legend.position=top) work ok. But p +