-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
In chartOpts for various charts, have names on a vector of colors can screw things up. Could we automatically strip those off in some cases, so that on the javascript side they're a vector not a list/object?
n <- 10
x <- rnorm(n)
y <- rnorm(n)
g <- sample(1:2, n, replace=TRUE)
ptcolor <- setNames(c("blue", "red"), c("blue", "red"))
iplot(x, y, group=g, chartOpts=list(pointcolor=ptcolor))
iplot(x, y, group=g, chartOpts=list(pointcolor = setNames(ptcolor, NULL) ))