

I have to plot 365 bars, each one representing one day of a year.įeel free to edit the question, if you think that i am unclear. And the gaps between the bars changes as I adjust the size. I have tried using both geom_bar and geom_histogram, both seems to give the same plot. Theme(axis.text = element_text(size=12, colour = 'black')) + Geom_histogram(stat = "identity", position = "stack") + I have used the following code: ggplot(df, aes(Day, Mean)) + After plotting when i do export > copy to clipboard and then try to adjust the size of my plot, the gaps between the bars change as I change the size of the plot (the gaps between the bars change its position).
