We can pass in additional parameters to control the way our plot looks. In this case, the height of a cell is equal to the number of observations falling in that cell. We can see above that there are 9 cells with equally spaced breaks. Hist(Temperature) Simple Histogram in R programming We will use the temperature parameter which has 154 observations in degrees Fahrenheit.Įxample 1: Simple histogram Temperature <- airquality$Temp Let us use the built-in dataset airquality which has "Daily air quality measurements in New York, May to September 1973" -R documentation. This function takes in a vector of values for which the histogram is plotted. Histograms can be created using the hist() function in R programming language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |