Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Highlighted
Level I

## How to get box plot overlayed with dot plot for selected groups?

I understand that after generating the box plot in graph builder, right-click the graph, select add, then select points will display dot plots over a box plot.

However, I have a single graph displaying 3 box plots for 3 groups:A, B and C.

Group A is a large sample size so the box plot alone is sufficient, however, Group B and C has such as small sample size.

Therefore, I would like to overlay two box plots (Group B and C) with dots.

Currently, the above method applies dot plots to all groups.

So, I would like to find out ways to have dot plot on selected box plots.

Also, is there any function that changes the color for 'outlier' dots?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

## Re: How to get box plot overlayed with dot plot for selected groups?

Here's an approach...

First, however, is that to display both a box plot and individual points, you simply need to select both the box plot and the points symbol in the palette at the top of the graph builder. Same result as "right-clicking" and choosing "add points".

Re: showing dots only on selected box plots.

1. Highlight the points you don't want to display.

2. Right-click and choose Rows > Row Markers > Other

3. In the field that appears for you to type in the marker you wish to use, insert a space via the "space-bar" on your keyboard.

Re: different colors for outliers

You can create an indicator variable via a formula identifying if a data value is an outlier or not. Then you can choose unique colors/symbols for each of the groups ("Outlier" or "Not")

Example if you were doing the standard Outlier if it exceeds 1.5*IQR beyond the Q1 or Q3.

2 REPLIES 2
Highlighted
Staff

## Re: How to get box plot overlayed with dot plot for selected groups?

Here's an approach...

First, however, is that to display both a box plot and individual points, you simply need to select both the box plot and the points symbol in the palette at the top of the graph builder. Same result as "right-clicking" and choosing "add points".

Re: showing dots only on selected box plots.

1. Highlight the points you don't want to display.

2. Right-click and choose Rows > Row Markers > Other

3. In the field that appears for you to type in the marker you wish to use, insert a space via the "space-bar" on your keyboard.

Re: different colors for outliers

You can create an indicator variable via a formula identifying if a data value is an outlier or not. Then you can choose unique colors/symbols for each of the groups ("Outlier" or "Not")

Example if you were doing the standard Outlier if it exceeds 1.5*IQR beyond the Q1 or Q3.

Highlighted
Level I

## Re: How to get box plot overlayed with dot plot for selected groups?

Thank you so much for the easy-to-understand explanation.
Article Labels

There are no labels assigned to this post.