cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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 ) ) )
);