Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想扩大 stat_binhex 的计数范围。网站上列出的玩具示例http://docs.ggplot2.org/0.9.3.1/stat_binhex.html在图例字段中有一个计数范围,我想扩展它。换句话说,我想让计数范围更小。
至于垃圾箱填充用于更改颜色,您可以使用它scale_fill_continuous()来设置breaks=您需要的位置。
scale_fill_continuous()
breaks=
ggplot(diamonds, aes(carat, price)) + stat_binhex() + scale_fill_continuous(breaks=seq(0,6000,500))