0
我一直在用rbokeh創建一個六邊形裝箱圖,它工作得非常好。不過,我真的很想在我的情節中加入一個色彩傳奇,這似乎並不奏效。R bokeh hexbin colorlegend?
library(rbokeh)
figure(legend_location = "top_right") %>% ly_hexbin(x=hp,y=mpg,data=mtcars)
爲了澄清我想實現有類似的傳說在GGPLOT2與geom_hex()命令
library(ggplot2)
ggplot(data=mtcars, aes(x=hp,y=mpg)) + geom_hex()+theme_minimal()