cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
FN
FN
Level VI

Plotting packed distribution with equal width (Jitter = 0)

When using violin plots (density), there is an option to have equal widths per variable.

 

However, I am unable to plot the dot distribution with the same shape as it does not respect the width of each variable.

FN_2-1597167975171.png

 

 

// Start of script;
Names Default To Here( 1 );
Clear Log();

dt = Open( "$SAMPLE_DATA/Bands Data.JMP" );

Data Table( "Bands Data" ) << Stack(
	columns( :proof cut, :viscosity, :blade pressure ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" ),
	Drop All Other Columns( 1 )
);

Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :Data ), Y( :Label ) ),
	Elements(
		Points( X, Y, Legend( 5 ), Jitter( "Packed" ), Jitter Limit( 0 ) ),
		Contour( X, Y, Legend( 6 ), Violin Scaling( "Equal Width" ) )
	)
)

I would like to know how to achieve something like this but for a number of variables.

FN_1-1597167768642.png

 

2 REPLIES 2
txnelson
Super User

Re: Plotting packed distribution with equal width (Jitter = 0)

I like the concept.  You should add it to the JMP Wish List

The closest I could come to the chart you want is by removing the Label variable from the Y axis, and making it a Y Grouping variable.  Then I changed the marker size to a dot.  Finally I changed the aspect ratio of the chart by stretching it making the display taller.

violin.PNG

Jim
FN
FN
Level VI

Re: Plotting packed distribution with equal width (Jitter = 0)

Thanks. So, as it seems this is not possible for JMP 15:

 

Here is the proposal for those that are interested: Plotting packed distribution with equal width and no jitter 

 

 

 

Recommended Articles