Skip to content

Commit dd04d8b

Browse files
alex-truemanhadley
authored andcommitted
Add example of using limits (#2358)
It is not clear in the documentation that the limits need to be a vector. Adding example may help some users.
1 parent d17c346 commit dd04d8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/coord-fixed.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#' p + coord_fixed(ratio = 1)
2020
#' p + coord_fixed(ratio = 5)
2121
#' p + coord_fixed(ratio = 1/5)
22+
#' p + coord_fixed(xlim = c(15, 30))
2223
#'
2324
#' # Resize the plot to see that the specified aspect ratio is maintained
2425
coord_fixed <- function(ratio = 1, xlim = NULL, ylim = NULL, expand = TRUE) {

0 commit comments

Comments
 (0)