Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 更改stat_binhex中的计数范围_R_Ggplot2_Data Visualization - Fatal编程技术网

R 更改stat_binhex中的计数范围

R 更改stat_binhex中的计数范围,r,ggplot2,data-visualization,R,Ggplot2,Data Visualization,我想扩大stat_binhex中的计数范围。网站上列出的玩具示例在图例字段中有一个计数范围,我想扩展它。换句话说,我想使计数范围更精细 至于垃圾箱填充用于更改颜色,您可以使用缩放填充连续()在需要的位置设置中断= ggplot(diamonds, aes(carat, price)) + stat_binhex() + scale_fill_continuous(breaks=seq(0,6000,500)) 我不太清楚你的确切意思。也许一个简单的代码示例和/或一个模型图来

我想扩大stat_binhex中的计数范围。网站上列出的玩具示例在图例字段中有一个计数范围,我想扩展它。换句话说,我想使计数范围更精细

至于垃圾箱填充用于更改颜色,您可以使用
缩放填充连续()
在需要的位置设置
中断=

ggplot(diamonds, aes(carat, price)) + stat_binhex() + 
         scale_fill_continuous(breaks=seq(0,6000,500))

我不太清楚你的确切意思。也许一个简单的代码示例和/或一个模型图来解释您到底想要更改什么可能会有所帮助?!