Subscribe Bookmark
XanGregg

Staff

Joined:

Jun 23, 2011

Reply All: Alphabetic Markers

Someone recently asked me about using letters instead of built-in symbols in JMP scatter plots. In case others are wondering the same thing, here's the long answer.

In addition to the 32 built-in symbols you can use any character as a marker for a scatter plot.The easiest way to set a letter as the symbol for a row is with the "Other..." item in the Marker submenu. Here's an example with Big Class. After selecting all males, right click in the row-state area to get:

8133_marker1.png

That brings up a dialog where you can type a letter.

8134_marker2.png

Setting the male rows to "M" and the female rows to "F" yields:

8135_marker3.png

And the scatter plot looks like:

8136_marker4.png

Any character in the current Marker Font (set in Preferences) is allowed, so there is a wide variety of Unicode characters available, and you can change the font preference to a symbol font for even more specialty options. Special characters can be tricky to type from the keyboard, but you can usually find them in a Unicode table and paste them into the dialog.

You can also set them through scripting. Here's a scripting example that uses the Mars/Venus male/female symbols, showing two different techniques for specifying the character.


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


r = dt << Select Where( :sex == "M" );


r << Markers( "\!U2642" ); // hexadecimal


r = dt << Select Where( :sex == "F" );


r << Markers( "♀" ); // actual character


Data table:

8137_marker5.png

Scatter plot:

8138_marker6.png

Article Tags