scale3: Scale pts in 3D

Description Usage Arguments Value

View source: R/scale3.R

Description

Scale pts in 3D

Usage

1
2
3
4
5
6
7
scale3(
  tbl,
  sx_ = 1, sy_ = 1, sz_ = 1,
  x_ = x, y_ = y, z_ = z,
  use_bounding_box = TRUE,
  keep_bounding = TRUE
)

Arguments

tbl

[tibble], a tibble containing points to be scaled

sx_

[numeric], length 1, default 1, value by which to scale x variable in tbl,

sy_

[numeric], length 1, default 1, value by which to scale y variable in tbl

sz_

[numeric], length 1, default 1, value by which to scale z variable in tbl

x_

[expr], variable name in tbl of x variable

y_

[expr], variable name in tbl of y variable

z_

[expr], variable name in tbl of z variable

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


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