The ______ function in R can be used to generate a histogram of a numeric vector.

  • hist()
  • plot()
  • barplot()
  • boxplot()
The hist() function in R can be used to generate a histogram of a numeric vector. The hist() function divides the range of the data into equal intervals called bins and counts the number of observations falling into each bin, creating a visual representation of the distribution of the data.
Add your answer
Loading...

Leave a comment

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