【发布时间】:2014-02-21 15:01:49
【问题描述】:
我希望情节中的图例是水平的(每个都在彼此旁边,而不是在另一个之上)
有没有办法从垂直变为水平? 示例:
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")
【问题讨论】: