Skip to content

Commit

Permalink
Update view_zoom_manual to new implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 2, 2019
1 parent 65f76c5 commit 28b8e03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion R/view-zoom-manual.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NULL
#' @export
#' @importFrom ggplot2 ggproto
view_zoom_manual <- function(pause_length = 1, step_length = 1, xmin, xmax, ymin, ymax,
delay = 0, wrap = TRUE, pause_first = FALSE,
delay = 0, pan_zoom = 0, ease = 'sine-in-out', wrap = TRUE, pause_first = TRUE,
fixed_x = FALSE, fixed_y = FALSE, exclude_layer = NULL, aspect_ratio = 1) {
ggproto(NULL, ViewZoomManual,
fixed_lim = list(x = fixed_x, y = fixed_y),
Expand All @@ -26,6 +26,8 @@ view_zoom_manual <- function(pause_length = 1, step_length = 1, xmin, xmax, ymin
ymax = ymax
),
delay = delay,
pan_zoom = exp(pan_zoom),
ease = ease,
wrap = wrap,
pause_first = pause_first
)
Expand Down
6 changes: 3 additions & 3 deletions man/view_zoom.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28b8e03

Please sign in to comment.