How to use boxplot() In R Language
This will generate a plot that represents minimum, maximum, median, first, and third quartiles
Syntax:
boxplot(data)
Example: Get the fivenum summary of the vector
R
# create the vector with 10 elements data= c (1:10) # get five summary print ( boxplot (data)) |
Output:
How to Calculate Five Number Summary in R?
In this article, we will discuss how to calculate five number summary in R programming language.
Five number summary is also known as a boxplot. it will return five values that are :
- The minimum value present in the given data
- The first quartile value present in the given data
- The median value present in the given data
- The third quartile value present in the given data
- The maximum value present in the given data