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()