cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Mosaic Graph cell sizing

I am building mosaic graphs and the cells are sized based on the count of each value in the graph. I am wondering if there is a way in jsl to force or fake the count to a set value? I am just trying to make the cells be the same size or show some symmetry.

 

Thank you,

Ray

1 ACCEPTED SOLUTION

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Mosaic Graph cell sizing

You can use frequency, it is in the bottom right corner of the graph builder. Here the sum of frequency for one and two are the same even though they do not have the same number of rows:

 

ih_1-1648210295905.png

 

 

Names default to here(1);

dt = New Table( "Untitled",
	Add Rows( 3 ),
	Set Header Height( 46 ),
	New Column( "Size",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 0.5, 0.5] )
	),
	New Column( "Topic", Character, "Nominal", Set Values( {"One", "Two", "Two"} ) )
)

dt << Graph Builder(
	Size( 440, 239 ),
	Show Control Panel( 0 ),
	Variables( Y( :Topic ), Frequency( :Size ) ),
	Elements( Mosaic( Y, Legend( 5 ) ) )
);

View solution in original post

1 REPLY 1
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Mosaic Graph cell sizing

You can use frequency, it is in the bottom right corner of the graph builder. Here the sum of frequency for one and two are the same even though they do not have the same number of rows:

 

ih_1-1648210295905.png

 

 

Names default to here(1);

dt = New Table( "Untitled",
	Add Rows( 3 ),
	Set Header Height( 46 ),
	New Column( "Size",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 0.5, 0.5] )
	),
	New Column( "Topic", Character, "Nominal", Set Values( {"One", "Two", "Two"} ) )
)

dt << Graph Builder(
	Size( 440, 239 ),
	Show Control Panel( 0 ),
	Variables( Y( :Topic ), Frequency( :Size ) ),
	Elements( Mosaic( Y, Legend( 5 ) ) )
);

Recommended Articles