coord_align: Align the object with the given coordinates
Description
Align the object with the given coordinates
Usage
coord_align(coords, loc = c(0, 0, 0), x = "mean", y = "mean", z = "mean")
Value
data.frame of transformed coordinates
Arguments
- coords
data.frame with 'x', 'y' and 'z' coordinates
- loc
location to align to. Default: c(0, 0, 0)
- x, y, z
how to align the x coordinates to the given location.
Default: 'mean'. Valid values 'min', 'mean', 'max', 'identity', 'median'
Examples
Run this codegen_sphere() |>
coord_align(z = 'max', y = 'min') |>
isocubesGrob(size = 3) |>
grid::grid.draw()
Run the code above in your browser using DataLab