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!
0 Kudos

Plotting packed distribution with equal width and no jitter

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


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




// 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 ) ),
		Points( X, Y, Legend( 5 ), Jitter( "Packed" ), Jitter Limit( 0 ) ),
		Contour( X, Y, Legend( 6 ), Violin Scaling( "Equal Width" ) )

It should be straight forward to achieve something like this but for a number of variables.



Tracking Number:

Defect ID: