R/chart-background.R

# g2 chart background is equivlent to ggplot2 theme panel options

# background: {
#   fill: {string},
#   fillOpacity: {number},
#   stroke: {string},
#   strokeOpacity: {number},
#   opacity: {number},
#   lineWidth: {number},
#   radius: {number}
# }

background <- function(chart, ...) {
  chart$background <- list(...)
  invisible(chart)
}
nteetor/golly documentation built on May 16, 2019, 8:12 p.m.