question about the ggplot::geom_histgram

When I tried to use the geom_histgram to draw a picture,I chose the binwidth=1 manually,but the plot shown's binwidth is 0.5?Why will that happen?

image

in your shared example, each vertical bar has width of 1, which is 0.5 each way eitherside of the label for the center of the bin

2 Likes

This topic was automatically closed 7 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.