₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,939 members, 8,514,608 topics. Date: Friday, 06 November 2026 at 10:25 PM

Toggle theme

How Can I Visualize Specific Data Points In A Boxplot In R - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › How Can I Visualize Specific Data Points In A Boxplot In R (291 Views)

1 Reply

How Can I Visualize Specific Data Points In A Boxplot In R by kiransam(op): 1:31pm On Mar 19, 2021
For adding values apart from the median, 1st quatrile, and 3rd quatrile in the boxplot, you can use the text function:

set.seed(123)

x <- rnorm(100, 5, 10)

If you want to showcase the mean value:

boxplot(x)

text(1, mean(x), "x", col = "red"wink

Additionally or alternatively, you can use the function points:

points(IQR(x), col = "blue", pch = cool

Learn R programming from scratch if you are a beginner and want to know more about R then check Data Science Courses
1 Reply

I Built A Research Grade Tool In R • Construction Cost Experts Delivering Project-specific Budget Analysis • Finding Specific User Posts In Chosen Threads - Google Search. • 2 • 3 • 4

Microsoft Dynamix Consultant Needed In Lagos • Most Rated Technology And Innovative Company • Help ! I Can't Download An Audio I Sent From My Android To My Email .