6/23/2023 0 Comments Box and whisker chartNa.action -> A function which indicates the action to be taken when the data has NA's.īy default, missing values are ignored in the plot.įor a comprehensive list of all commands, type help(boxplot) in R prompt.Ī simple Box and Whisker plot in vertical direction Horizontal -> A logical value that decides whether the box and whiskers are drawn horizontally or vertically.Ĭolor -> color to fill the bodies of the boxes.īy default, inside of the boxes will be painted with background color. Names -> A vector of strings to be printed as names under each box. If outline=TRUE, outliers are drawn as points. If outline=FALSE, outliers are not drawn. Outline -> This controls the display of outliers. Notch -> If notch is TRUE, a notch is drawn on each side of the boxes. If varwidth=FALSE, width of the box will not be dependent on data size. If varwidth=TRUE, the box width will be proportional to the square root of Varwidth -> A logical value that decides whether the width of the box is Width -> a vector giving the relative widths of the boxes making up the plot. Points outside this range are marked as outliers. A value of zero makes the whiskers extend upto extreme data point onīoth sides.A positive value m extents the whiskers upto m times the interquartile distance Range -> A number that decides the data values upto which the X -> Data in the form of a numeric vector, a list of vectors or a data frame. Suppose, for a given data set we compute the parameters as follows: The outliers are also marked as points above and below the whiskers, if needed. From the end of the box, two whiskers are extended along both sides to touch the maximum and minimum points in the data. To decide the outlier, first compute the above mentioned parametersįor an arbitrary number 'm', declare the data points m*(Q3-Q1)Ībove Q3 or m*(Q3-Q1) below Q1 as outliers.Ī box and whisker plot is made up of a box at the center with three quartiles marked on it. Ourliers in the data : The definition of outlier in the data is a bit arbitrary. Inter quartile range = (Q3-Q1) is the difference between first and third quartiles. Third Quartile (Q3) is the value below which three fourth of the data points are located. Median value or Second Quartile (Q2) is the value below which half of the data points lie. First Quartile (Q1) is the value below which one fourth of the data points lie.
0 Comments
Leave a Reply. |