Learn R Programming

isocubes (version 1.0.0)

coord_translate: Translate object

Description

Translate object

Usage

coord_translate(coords, x = 0, y = 0, z = 0)

Value

data.frame of transformed coordinates

Arguments

coords

data.frame with 'x', 'y' and 'z' coordinates

x, y, z

amount to translate along each axis. Default: 0

Examples

Run this code
gen_sphere() |>
   coord_translate(x = 20, z = 40) |>
   isocubesGrob(size = 2) |>
   grid::grid.draw()

Run the code above in your browser using DataLab