I try to create a chart in Python using ggplot library.
My data is in this format:
id total
1 3
1 4
1 7
2 3
2 2
2 5
I want to create a bar chart where every id has it's own bar. The y will be the average of total column for the specific id and also add error area with min and max for each bar.
I am new on ggplot. I have worked with scatter plots and line graph but not with bar chart.
I found that bar charts can be created with
gg = ggplot(mydata, aes(....)) + geom_bar()
But I cannot figure what to add on aes.