guide_colourfan function

Colourfan guide

Colourfan guide

guide_colourfan( title = waiver(), title.x.position = "top", title.y.position = "right", title.theme = NULL, title.hjust = 0.5, title.vjust = NULL, label = TRUE, label.theme = NULL, barwidth = NULL, barheight = NULL, nbin = 32, reverse = FALSE, order = 0, available_aes = c("colour", "color", "fill"), ... ) guide_colorfan( title = waiver(), title.x.position = "top", title.y.position = "right", title.theme = NULL, title.hjust = 0.5, title.vjust = NULL, label = TRUE, label.theme = NULL, barwidth = NULL, barheight = NULL, nbin = 32, reverse = FALSE, order = 0, available_aes = c("colour", "color", "fill"), ... )

Arguments

  • title: Title
  • title.x.position: Title x position
  • title.y.position: Title y position
  • title.theme: Title theme
  • title.hjust: Title hjust
  • title.vjust: Title vjust
  • label: Label
  • label.theme: Label theme
  • barwidth: Barwidth
  • barheight: Barheight
  • nbin: Number of bins
  • reverse: Reverse
  • order: order
  • available_aes: Available aesthetics
  • ...: Extra paramters

Returns

A grob object representing a color fan. This grob can be added to a grid-based plot or a ggplot2 object to visualize a range of colors in a fan-like structure. Each segment of the fan corresponds to a color specified in the colours parameter, allowing for an intuitive representation of color gradients or palettes.

  • Maintainer: Alan Inglis
  • License: GPL (>= 2)
  • Last published: 2024-07-24

Useful links