how to use custom geom_bar width

I want to know how to change the geom_bar width(not the space, but the bar width)


ggplot(data) + geom_bar(aes(x= a, y = b),stat = "identity", position = "fill")

then, how can change the bar width.

Just use the width parameter, e.g.

ggplot(data) + geom_bar(aes(x= a, y = b),stat = "identity", position = "fill", width = 10)

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.