I am trying to create a bar plot of air quality data. I want Monitoring Site on the X-axis, and the concentration of 2 pollutants measured at each site against the y-axis, e.g. at the London site I measured 5 ng/m3 of antimony (series 1) and 10 ng/m3 barium (series 2). So the y-axis will just be Concentration (ng/m3).
I have searched already and the only examples of getting a 2nd series seem to work if the second series is a qualitative property that can be defined by colour, so you still only have one bar not two.
Also the examples seem to involve entering the data frame in the code manually, but I have a lot of data and want to import the file. I have successfully imported from a csv, but can't see how to refer to it in the code.
Openair only seems to plot stacked bar charts that have to relate to dates on the X-axis with timeProp.
Sorry I am very inexperienced with programming like this, I hope my question makes sense. Any help appreciated!
I think you need something like this:
Edit:
Now suppose your data is name my_data and organize as follows: first column name cites with the cites names, then each column's name is a pollution with the values of the pollution concentration for each cite. Then your code for manage your data and used in ggplot could be: