1
我希望劇情內部的傳說是水平的(每一個彼此相鄰,而不是一個在另一個之上)如何強制圖中的圖例水平而不垂直?
有沒有辦法從垂直變爲水平? 例子:
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")
傳說不適用於ggplot2 – user3236841