How to calculate concentration and ggplot it