oblicubes 1.0.0
- Removes the R 4.1 pipe from examples (so this package can be used with earlier versions of R).
- Adds alt descriptions to images in README and vignette.
oblicubes 0.1.2
CRAN release: 2022-08-27
Initial features
-
oblicubesGrob()/grid.oblicubes()renders cubes using a 3D oblique projection.oblicubesGrob()returns a grid grob object whilegrid.oblicubes()also draws the grob to the graphic device. As a special case may also render a 2D primary view orthographic projection. Inspired by coolbutuseless’s {isocubes} package. -
geom_oblicubes()provides a ggplot2 geom wrapper tooblicubesGrob(). -
oblicuboidsGrob()/grid.oblicuboids()renders cuboids using a 3D oblique projection.oblicuboidsGrob()returns a grid grob object whilegrid.oblicuboids()also draws the grob to the graphic device. As a special case may also render a 2D primary view orthographic projection. Inspired by cj-holmes’s {isocuboids} package. -
geom_oblicuboids()provides a ggplot2 geom wrapper tooblicuboidsGrob(). -
xyz_heightmap()calculate x,y,z coordinates (and optionally colors) from a height matrix. An adaption ofcoords_heightmap()from coolbutuseless’s {isocubes}. -
darken_face()is a function to darken the color of cube/cuboid faces. Meant to serve as thelightargument ofoblicubesGrob(),grid.oblicubes(),oblicuboidsGrob(),grid.oblicuboids(). -
cheap_darken()is a function to darken colors by a certain “amount”. Faster (but less “good”) thencolorspace::darken(). A copy of an internal function from coolbutuseless’s {isocubes}.