How can I suppress the vertical gridlines in a ggplot2 plot?

前端 未结 5 1079
无人及你
无人及你 2020-12-01 04:14

I am building a bar chart for which bars suffice as indications of horizontal (x) placement, so I\'d like to avoid drawing the superfluous vertical gridlines.

I unde

5条回答
  •  失恋的感觉
    2020-12-01 04:39

    Try using

    scale_x_continuous(breaks = NULL)

    This would remove all the vertical gridlines as well as x-axis tickmark labels.

提交回复
热议问题