How to show values in boxplot in R?

The main values in a boxplot are minimum, first quartile, median, third quartile, and the maximum, and this group of values is also called five-number summary. Therefore, if we want to show values in boxplot then we can use text function and provide the five-number summary and labels with fivenum function as shown in the below examples.

Example1

x

Output

Example2

y

Output

Updated on: 2021-03-06T13:46:44+05:30

5K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements