Based on the ggplot2 draft book p.112 "The position and justification
of legends are controlled by the theme setting legend.position, and
the value can be right, left, top, bottom, none (no legend), or a
numeric position."
However, I am only able to position the legend on the right, the other
values (left, bottom, top) seem to produce no meaningful results at
all.
Am I doing something wrong, or is this a bug?
x <- ggplot(mtcars, aes(wt, cyl, colour = gear)) + geom_point()
x + opts (legend.position = "right") # theme default, works
x + opts (legend.position = "top") # not working
x + opts (legend.position = "bottom") # not working
x + opts (legend.position = "left") # not working
x + opts (legend.position = c(0.7, 0.7)) # working
--
http://learnr.wordpress.com/