Проблема здесь немного очевидна, я думаю. Я бы хотел, чтобы легенда была помещена (заблокирована) в верхнем левом углу области печати. Использование c (0,1,0.13) и т.д. Не является вариантом по ряду причин.
Есть ли способ изменить опорную точку для координат, чтобы они были относительно области построения графика?
mtcars$cyl <- factor(mtcars$cyl, labels=c("four","six","eight"))
ggplot(mtcars, aes(x=wt, y=mpg, colour=cyl)) + geom_point(aes(colour=cyl)) +
opts(legend.position = c(0, 1), title="Legend placement makes me sad")
Приветствия