rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

when using both color and glyph on scatter plot, legend for glyph not showing properly

Open notesofdabbler opened this issue 10 years ago • 1 comments

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

notesofdabbler avatar Mar 18 '15 03:03 notesofdabbler

Thanks for the report. It looks like all glyphs are showing for each entry. I'll take a look.

hafen avatar Mar 18 '15 15:03 hafen