diff --git a/R/plot-build.r b/R/plot-build.r index 78c65a0fe4..6fb2689090 100644 --- a/R/plot-build.r +++ b/R/plot-build.r @@ -159,7 +159,7 @@ ggplot_gtable.ggplot_built <- function(data) { plot_table <- layout$render(geom_grobs, data, theme, plot$labels) # Legends - position <- theme$legend.position + position <- theme$legend.position %||% "right" if (length(position) == 2) { position <- "manual" }