Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I an trying to plot 6 groups, in which 3 has a good amount of counts (ranging from 20 to 400) and the rest 3 have very small counts (1 to 9). I want to plot the distribution of a continuous variable within each of these 6 groups and be very honest in the plot about the dramatically different sizes of the groups. I am thinking about generating violin plot for the 3 groups with larger counts to show both the median and the dispersion, and for the low-count groups, plot stripchart to show individual data points.

Could anyone kindly help me find a way to do such a hybrid plot? Other plot suggestions are also welcome.

share|improve this question
In some particular package? – Glen_b Apr 13 '14 at 11:41
up vote 4 down vote accepted

Here's a basic one done in R:

# make some data

# do the plot

enter image description here

share|improve this answer
Thank you so much, Glen_b! – HueSX Apr 13 '14 at 17:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.