【发布时间】:2016-12-03 02:17:12
【问题描述】:
例子:
xy <- data.frame(x=1:10, y=10:1, type = rep(LETTERS[1:2], each=5))
plot <- ggplot(data = xy)+
geom_point(aes(x = x, y = y, color=type)) +
theme(legend.position = 'bottom')
plot
我们如何才能在 A 和 B 的顶部而不是它们的左侧获得标题“类型”?
谢谢
【问题讨论】: