Skip to content

Strip off names in chartOpts #69

@kbroman

Description

@kbroman

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) ))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions