add_milestone_coloring: Add colouring to a set of milestones.

Description Usage Arguments Value

View source: R/add_milestone_coloring.R

Description

Add colouring to a set of milestones.

Usage

1
2
3
4
add_milestone_coloring(
  milestones = NULL,
  color_milestones = c("auto", "given", "cubeHelix", "Set3", "rainbow")
)

Arguments

milestones

Tibble containing the column milestone_id (character). If color_milestones is set to "given", this tibble should also contain a column color (character), containing colour hex codes (e.g. "#123456").

color_milestones

Which palette to use for colouring the milestones

  • auto: Determine colours automatically. If color is already specified in milestones tibble, this will be used. Otherwise, the colour scheme is determined by milestone_palette_list$auto.

  • given: The milestones object already contains a column color.

  • cubeHelix: Use the rje::cubeHelix() palette.

  • Set3: Use the RColorBrewer::brewer.pal(name = "Set3") palette.

  • rainbow: Use the grDevices::rainbow() palette.

Value

A tibble containing the input character column milestone_id and a character column color containing colour hex-codes (e.g. "#123456").


dynplot documentation built on Dec. 11, 2021, 9:33 a.m.