add_space function

A ggproto for drawing circle

A ggproto for drawing circle

This is a wrapper function used by explore_space_pca() and should be be called directly by the user

add_space( dt, space_alpha = 0.5, space_fill = "grey92", space_color = "white", cent_size = 1, cent_alpha = 1, cent_color = "black", ... )

Arguments

  • dt: A data object from the running the optimisation algorithm in guided tour
  • space_alpha: numeric; the alpha of the basis space
  • space_fill: character; the colour of the space filling
  • space_color: character; the colour of the space brim
  • cent_size: numeric; the size of the centre point
  • cent_alpha: numeric; an alpha of the centre point
  • cent_color: character; the colour of the centre point
  • ...: other aesthetics inherent from explore_space_pca()

Returns

a wrapper for drawing the space in explore_space_pca()

Examples

library(ggplot2) space <- tibble::tibble(x0 = 0, y0 = 0, r = 5) ggplot() + add_space(space) + theme_void() + theme(aspect.ratio = 1)

See Also

Other draw functions: add_anchor(), add_anno(), add_dir_search(), add_end(), add_interp(), add_interp_last(), add_interrupt(), add_search(), add_start(), add_theo()

  • Maintainer: H. Sherry Zhang
  • License: MIT + file LICENSE
  • Last published: 2024-06-23