I wish to label the different parts of the boxplot drawn by geom_boxplot()

I see that the variables ymin, lower, middle etc are computed by stat_boxplot() but I am not able to access them to label the boxplot.

Can you help me?

Welcome! The solution below is one approach to adding labels to your boxplot.

Thank you. I already know this approach. What I wanted to know is How to access the variables computed by stat_boxplot() to label the boxplot because I don't know if they are also using the quantile function or summary function.

with regards

Rama

I found a way by searching and searching.

So the trick is to get the data from geom_boxplot into an object and then using ggplot_build()

It works!

with regards

Rama

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.