2017-09-25 52 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上打開一個問題來進一步跟蹤。