rbokeh
rbokeh copied to clipboard
when using both color and glyph on scatter plot, legend for glyph not showing properly
I was trying to use color and glyph based on data attribute and the legend doesn't seem to show glyph attribute. I am listing below a small code that I was using.
library(rbokeh)
data(mtcars)
df = mtcars
df$cyl2 = as.factor(df$cyl)
df$gear2 = as.factor(df$gear)
p = figure() %>%
ly_points(disp,mpg,data=df,color=cyl2,glyph = gear2)
p
Thanks for the report. It looks like all glyphs are showing for each entry. I'll take a look.