Dear Ryan and rbokeh folk:
Is there a way to name legend items correctly when they are
programmatically set?
For instance, when we generate this figure:
figure(iris) %>%
ly_points(Sepal.Length, Sepal.Width, color=Species)
The legend generated for the colors of the points is correctly named
"Species", but say that we want to programmatically map the color to
an attribute, and we have something like:
colvar <- 'Species'
figure(iris) %>%
ly_points(Sepal.Length, Sepal.Width, color=colvar)
The name of the legend items for the colors is "colvar", but I'd still
like it to be "Species"
Any attempt to modify the legend parameter in the `ly_points` function
call complains that it can't be touched since it's automatically
generated, so not sure how to proceed.
Is this supported yet, or?
Thanks,
-steve
···
--
Steve Lianoglou
Bioinformatics Scientist
Cancer Immunology
Genentech
