R 调整图例';s到主地块的间距

R 调整图例';s到主地块的间距,r,ggplot2,legend,legend-properties,R,Ggplot2,Legend,Legend Properties,几乎涵盖了R中图例的所有属性。我想知道如何增加图例和主情节之间的间距 遵循您提供的链接中的示例: library(ggplot2) 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)) 库(ggplot2) xy遵循您提供的链接中的示例: library(ggplot

几乎涵盖了R中图例的所有属性。我想知道如何增加图例和主情节之间的间距

遵循您提供的链接中的示例:

library(ggplot2)
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))
库(ggplot2)

xy遵循您提供的链接中的示例:

library(ggplot2)
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))
库(ggplot2)

xy查看
?主题
图例.页边距
。查看
?主题
图例.页边距