I'm trying to make the bars of the plot of the same size with this code:
my_plot_replicas = (ggplot(df)
+ aes(x='algorithm',y='replicas',fill='algorithm')
+ geom_col(position=position_dodge2(preserve='single'))
+ geom_errorbar(aes(ymin='replicas-error', ymax='replicas+error'),
width=.2,position=position_dodge(.9))
+ facet_grid('mobility ~ time_elapsed',scales = "free_x")
+ scale_fill_manual(["darkgray", "gray"])
)
But I get this plot, where the bars that are alone take the whole width of the grid:
I would like to have the bars from columns 0 and 43200 of the same size as the others, is that possible?