You can cut a continuous variable in several sections, and plot a box for each section.

Here we take the value of “carat” and cut it by 0.5 step. This is done with the cut_width() function.

Learn more about ggplot and boxplots.


Not what you are looking for ? Make a new search !


Leave a Reply

Notify of