dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << colorByColumn(:sex);
dt<<New Column( "Heart Column",
Expression,
"None",
Formula(
Text Box(
"â¡",
<<FontColor( If( :sex == "F", "RED", "BLUE" ) ),
<<setFontSize( 30 )
) << getpicture
),
Use for Marker
);
dt << Graph Builder(
Size( 845, 669 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :age ), Group X( :sex ) ),
Elements( Points( X, Y, Legend( 16 ) ) ),
SendToReport(
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Height by Age/Gender" )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Height" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Age" )} )
)
);
Hearts ...