r - ggplot : geom_bar with many bar

标签 r ggplot2

我使用 ggplot 和 geom_bar 来表示 188 个类别与连续值。 正如您所看到的,渲染的垂直白色间距很大。 我怎样才能删除它?

enter image description here

最佳答案

尝试将 geom_bar 中的宽度参数设置为 1:geom_bar(width=1)

关于r - ggplot : geom_bar with many bar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43499333/

相关文章:

r - ggarrange : combining multiple plots with shared y and x axis: arrange for only one shared y axis while keeping plots in same proportion

r - 在错误顺序的 ggplot2 条形图图例元素中,一个玩家的条形颜色已关闭

R:使用 ggplot geom_line 防止显示时间序列数据的断线

mysql - 如何将整个数据帧写入 R 中的 mySql 表

r - 从颜色中删除线条并填充图例

r - 从 igraph 到 ggplot 对象

r - 将多个相互依赖的包上传到 CRAN

删除连接geom_line

r - 绘制网格的 3D 地形图

r - 配对 data.table 中的行