2017-09-25 73 views
0

我一直在用rbokeh创建一个六边形装箱图,它工作得非常好。不过,我真的很想在我的情节中加入一个色彩传奇,这似乎并不奏效。R bokeh hexbin colorlegend?

library(rbokeh) 
figure(legend_location = "top_right") %>% ly_hexbin(x=hp,y=mpg,data=mtcars) 

Rbokeh plot

为了澄清我想实现有类似的传说在GGPLOT2与geom_hex()命令

library(ggplot2) 
ggplot(data=mtcars, aes(x=hp,y=mpg)) + geom_hex()+theme_minimal() 

Same plot but with ggplot2 with legend

回答

1

这是目前没有什么可能与rbokeh,但即将在未来的版本正在进行。我会建议在github上打开一个问题来进一步跟踪。