You can read about them in the help section ?boxplot. We can pass in additional parameters to control the way our plot looks. We can also notice two outliers at the higher extreme. We can see that data above the median is more dispersed. Let us make a boxplot for the ozone readings. Let us use the built-in dataset airquality which has “Daily air quality measurements in New York, May to September 1973.”-R documentation. You can also pass in a list (or data frame) with numeric vectors as its components. The boxplot() function takes in any number of numeric vectors, drawing a boxplot for each vector. In R, boxplot (and whisker plot) is created using the boxplot() function.
0 Comments
Leave a Reply. |