scale_into_viewport: Scale a pts_tbl into a viewport

Description Usage Arguments Value

View source: R/scale_into_viewport.R

Description

Scale a pts_tbl into a viewport

Usage

1
2
3
4
5
6
7
8
scale_into_viewport(
  tbl,
  xc_ = 0, yc_ = 0,
  side_ = 1,
  x_ = x, y_ = y,
  use_bounding_box = TRUE,
  keep_bounding = FALSE
)

Arguments

tbl

[tibble], tibble of points

xc_

[numeric], length 1, x center of viewport

yc_

[numeric], length 1, y center of viewport

side_

[numeric], length 1, nonnegative, the width of the side of the viewport

x_

[symbol], length 1, variable name to use as x in tbl

y_

[symbol], length 1, variable name to use as y in tbl

use_bounding_box

[logical], length 1, default TRUE,
if FALSE rotate3 does not use bounding box points to make computations
default behavior is to use bounding box points to make computations

keep_bounding

[logical], length 1, default TRUE,
if FALSE does not rbind the bounding box back after computation
default behavior is to use bounding box points to make computations

Value

1
      [{type}]

thmshrt/ggshapes documentation built on Dec. 31, 2020, 8:37 a.m.