Functions are series of predefined codes that are executed when evoked
Bart should use the barplot() function to create the bar chart
From the question, we have the following highlights
The function that creates a bar chart in R is the barplot() function
Hence, Bart should use the barplot() function
Read more about functions at:
https://brainly.com/question/14284563