Skip to content

Commit f1e84cb

Browse files
authored
update example (#5767)
1 parent 4a9479b commit f1e84cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/theme.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@
272272
#' # Or place legends inside the plot using relative coordinates between 0 and 1
273273
#' # legend.justification sets the corner that the position refers to
274274
#' p2 + theme(
275-
#' legend.position = c(.95, .95),
275+
#' legend.position = "inside",
276+
#' legend.position.inside = c(.95, .95),
276277
#' legend.justification = c("right", "top"),
277278
#' legend.box.just = "right",
278279
#' legend.margin = margin(6, 6, 6, 6)

man/theme.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)