# NOT RUN {
library(dplyr)
cdm_draw(cdm_nycflights13())
cdm_draw(cdm_nycflights13(cycle = TRUE))
cdm_nycflights13(color = FALSE) %>%
cdm_set_colors(
airports = ,
airlines = ,
planes = "yellow",
weather = "dark_blue"
) %>%
cdm_draw()
# Splicing is supported:
new_colors <- c(
airports = "yellow", airlines = "yellow", planes = "yellow",
weather = "dark_blue"
)
cdm_nycflights13(color = FALSE) %>%
cdm_set_colors(!!!new_colors) %>%
cdm_draw()
# }
Run the code above in your browser using DataLab