News
On June 1, we’re asking you to select a content label when starting a new topic in the Discussions area. Read more to find out why.
Choose Language Hide Translation Bar
Highlighted
Level II

## How to create a scatterplot with median line (no box plot)

Hi!

I'm presenting the results of a small cohort (10 or less per group) for comparission. I've been trying to create a scatterplot showing only these dots and a median line in order to show a fair display of variability and data amount. Could anyone help me with tips to create this in JMP 12?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

## Re: How to create a scatterplot with median line (no box plot)

Use Graph > Graph Builder. Put your continuous variable on Y and your categorical variable on X. Hold the shift key and click the Bar element icon above the canvas. Change the Bar Style property on the left to Float. Change the bar Summary Statistic to Median.

LIke this:

The lesson is that you should think of the Bar element as something to represent length, interval, or position (other than a data marker). Then use the bar properties to obtain the graphic you want.

Learn it once, use it forever!
5 REPLIES 5
Highlighted
Staff

## Re: How to create a scatterplot with median line (no box plot)

If you know the median, you can add a reference line by just bringing your cursor into the neighborhood of the y-axis, left double click, and the Add Reference Line portion of the window is in the lower right corner of the window.

Highlighted
Level II

## Re: How to create a scatterplot with median line (no box plot)

Thank you for your suggestion. This would however add a line spanning both of my groups, while I only wish to show the median intrinsic to each group. Do you know whether JMP 13 offers this in graph builder?

Edit: I also realize I did not specify that I have two groups, sorry.

Highlighted
Staff

## Re: How to create a scatterplot with median line (no box plot)

Use Graph > Graph Builder. Put your continuous variable on Y and your categorical variable on X. Hold the shift key and click the Bar element icon above the canvas. Change the Bar Style property on the left to Float. Change the bar Summary Statistic to Median.

LIke this:

The lesson is that you should think of the Bar element as something to represent length, interval, or position (other than a data marker). Then use the bar properties to obtain the graphic you want.

Learn it once, use it forever!
Highlighted
Level II

## Re: How to create a scatterplot with median line (no box plot)

Thank you very much! That'll do it!
Highlighted
Staff (Retired)

## Re: How to create a scatterplot with median line (no box plot)

cool! I only got this far...Part way there

Craige