plot_bar function

Create a bar plot