Create's a boxplot using the boxplot() function.
Syntax
boxplot(data)
# Example data
data <- c(22, 30, 25, 40, 35, 28, 45, 50, 32, 38, 42, 27, 33, 29, 31)
# Create a boxplot
boxplot(data, main = "Boxplot", ylab = "Values", col = "lightgreen", border = "black")
We can use attributes to make a difference.
data <- c(22, 30, 25, 40, 35, 28, 45, 50, 32, 38, 42, 27, 33, 29, 31)
# Customized boxplot
boxplot(data, main = "Customized Boxplot", ylab = "Values", col = "lightblue", border = "darkblue", notch = TRUE)
The Concepts and codes you leart practice in Compilers till you are confident of doing on your own. A Various methods of examples, concepts, codes availble in our websites. Don't know where to start Down some code examples are given for this page topic use the code and compiler.