How to put values on boxplot and control its width?
X<-c(1,2,,3,4,4,5,5,6,6,6,6,6,7)
I need to write values for min, max, 1st quartile, median and last quartile. How can I put it there?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
horizontal = TRUEget a horizontal boxplot andaxes = FALSEto remove the axes.staplewex = 1sets the staple width the same as the box widthThen you can use
fivenumto return the statistics used to create the boxplot and use these as text labels, fiddling with theyvalue until you have what you wantNote that i’ve inserted a
3for the value missing in your example dataX