r code for bar chart. There are any references about r code for bar chart in here. you can look below.