Does anyone know how to overlay a label (text) onto a Map generated via Tools -> Graph? I've set up the map with a State variable in the "Shapes" and Variable "A" for the colors of the state shapes, but I wanted to then overlay Variable "B" as text over top of each state.
I've searched the help file and googled for anything I can think of but can't seem to locate anything. I'm beginning to think it isn't possible ... but figured I'd at least ask.
It is possible. In the data table, select column "B" and set it as a label column (Cols -> Label/Unlabel). Then select all rows or only the rows you want to labelled in the graph and set them to labelled (Rows -> Label/Unlabel).
A script example:
dt = Open( "$ENGLISH_SAMPLE_DATA/Crime.jmp" );
dt:State << label( 1 );
dt << Select All Rows << Label;
dt = Graph Builder(
Variables( Color( :murder ), Shape( :State ) ),
Elements( Map Shapes( Legend( 1 ), Show Missing Shapes( 0 ) ) )
Thank you!! I had actually turned on the Cols->Label/Unlabel and it didn't work. I just missed turning on the row labels and as soon as I did that it showed up. I guess I thought if I turned on the row labels that it would actually label the state names instead of the alternate column.