An extension of geom_bar into the third dimension.

geom_bar_z(
  mapping = NULL,
  data = NULL,
  stat = "count",
  position = "stack",
  ...,
  width = NULL,
  na.rm = FALSE,
  orientation = NA,
  show.legend = NA,
  inherit.aes = TRUE,
  extrude = FALSE,
  material = list(),
  keep2d = FALSE
)

Arguments

mapping, data, stat, position, ..., width, na.rm, orientation, show.legend, inherit.aes

See documentation for ggplot2::geom_bar.

extrude

whether or not to extrude the polygon

material

Arguments passed to rgl::material3d() to specify the material properties for this geom. Any parameters specified in this argument override the defaults. See rgl documentation for more info. Also see ggrgl::standard_material for the standard default material parameters used for all objects.

keep2d

keep the original 2d representation? default: FALSE

Z Offset Geom

The z suffix indicates that this geom produces planar graphical elements, parallel to the ground i.e. the drawn element is the same as that for ggplot2 except it has a vertical offset (constant across each graphical element).

Geom Supports Extrusion

This geometry supports extrusion. Set extrude = TRUE and adjust aesthetics:

extrude_face_fill

The colour of the extruded faces. Default: 'grey20'

extrude_face_alpha

Alpha for the extruded faces. Default: 1

extrude_edge_colour

Colour of the edges of the extrusion. Default: NA (invisible)

extrude_edge_alpha

Alpha for the extruded edges. Default: 1

extrude_edge_size

Width of the line to draw the extruded edge. Default: 1

extrude_z

The lower limit of the extrudsion. Default: 0.05

See also