powered by
Rotate object around a coordinate axis
coord_rotate(coords, theta, axis = "z")
data.frame of transformed coordinates
data.frame with 'x', 'y' and 'z' coordinates
angle in radians.
axis to rotate around. Default: 'z'. Valid values: 'x', 'y', 'z'
obj_letter |> coord_rotate(pi/2, 'y') |> isocubesGrob() |> grid::grid.draw()
Run the code above in your browser using DataLab