hadley/ggplot2 — Issue #287: Legend changes layout even if it is placed inside the plot
Author: mike-lawrence
Created: 2011-12-10 02:38:09+00:00
State: open

````R
data = data.frame(x=1:10,y=1:10,col=factor(1:2))
qplot(x=data$x,y=data$y)
#this has slightly less white space on the right
qplot(x=data$x,y=data$y,colour=data$col)+opts(legend.position=c(.5,.5))
#as does this
qplot(x=data$x,y=data$y,colour=data$col)+opts(legend.position='none')
````