R file to create multiple bar charts (via a loop)