![]() To view, the summary of the iris dataset use the summary(iris) function To view, the structure of the iris data set use the head(iris) function We will use the default iris dataset for the boxplot example. the main argument is used to assign the title of the graph.lab argument is used to assign a y-axis label.boxplot(datafamename$variablename,ylab=’labelname’,main=’title’).notch: This is a boolean flag argument, which is useful to draw notch in each boxplot, and it represents if the median of two boxplots of groups differs or overlaps.names: Group-level names which will be printed on the group boxplots.… : For the formula method, named arguments to be passed to the default method these three dots are used as arguments.formula: A formula, such as y ~ x, where y is a numeric vector of data values to be split into groups according to the grouping variable x.This includes numeric vectors or a list containing the numeric vectors.x: This argument denotes the data vector on which the boxplot will be created.Horizontal = FALSE, add = FALSE, at = NULL) Description of Basic Arguments Pars = list(boxwex = 0.8, staplewex = 0.5, outwex = 0.5), Notch = FALSE, outline = TRUE, names, plot = TRUE,īorder = par("fg"), col = NULL, log = "", , subset, na.action = NULL) Boxplot Syntax with Default s3 Method for the Formula in Rīoxplot(x.,data, range = 1.5, width = NULL, varwidth = FALSE, Boxplot Syntax with s3 Method for the Formula in Rīoxplot(formula, data = NULL. It accepts several arguments for the boxplot formation.S3 method is used to create a formula for the boxplot arguments, if the formula is not mentioned it will take the default. This package is useful to create a boxplot and whisker plot of the given dataset or group of variable values. Syntax of creating boxplot using the R language is given below: Syntax of Creating Boxplot Using the R Language whiskers are represented in dotted lines.Outliers in data represent as dots or small circles beyond the whiskers.It represents the data range in quartiles and the Interquartile range (IQR) which is Q1 to Q3 is represented in the box. ![]()
0 Comments
Leave a Reply. |