Skip to content

Commit 9988f5b

Browse files
committed
add example
1 parent fca4be5 commit 9988f5b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

R/coord-cartesian-.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
#' # default limits
6060
#' p + coord_cartesian(expand = FALSE)
6161
#'
62+
#' # Using a fixed ratio: 1 y-axis unit is 100 x-axis units
63+
#' # Plot window can be resized and aspect ratio will be maintained
64+
#' p + coord_cartesian(ratio = 100)
65+
#'
6266
#' # You can see the same thing with this 2d histogram
6367
#' d <- ggplot(diamonds, aes(carat, price)) +
6468
#' stat_bin_2d(bins = 25, colour = "white")

man/coord_cartesian.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)