What function is commonly used to create a basic bar chart in R?

  • barplot()
  • plot()
  • pie()
  • scatterplot()
The barplot() function is commonly used to create a basic bar chart in R. It takes a vector or matrix of numeric values as input and creates a vertical bar chart where each bar represents a category or variable.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *