Subscribe Bookmark RSS Feed

Is it possible to create background map images from graph builder maps that I create in JMP?

elliot_meador_s

Occasional Contributor

Joined:

Jul 27, 2016

I'd like to use the graph builder type of maps I make (where I show some variable of interest mapped by region, etc) into a map image.  I'd like to project a map image of a previously made graph behind a bubble chart.  Ultimately, I'm trying to show regional socioeconomic trends behind plotted bubble charts.  Script would be a great help if this is possible.

cheers,

Elliot

2 REPLIES
Craige_Hales

Staff

Joined:

Mar 21, 2013

here's the first part: grab an image from a graph builder display frame:

dt=open("$sample_data/big class.jmp");

gb = dt<<Graph Builder(

  Size( 641, 448 ),

  Show Control Panel( 0 ),

  Variables( X( :weight ), Y( :height ) ),

  Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),

  SendToReport(

  Dispatch(

  {},

  "weight",

  ScaleBox,

  {Min( -122.734876954782 ), Max( -67.4190811007395 ), Inc( 20 ),

  Minor Ticks( 0 )}

  ),

  Dispatch(

  {},

  "height",

  ScaleBox,

  {Scale( "Geodesic" ), Min( 17.4319614498727 ), Max( 51.9452357861559 ),

  Inc( 10 ), Minor Ticks( 0 )}

  ),

  Dispatch(

  {},

  "Graph Builder",

  FrameBox,

  {Background Map( Images( "Simple Earth" ) ), Grid Line Order( 2 ),

  Reference Line Order( 3 )}

  )

  )

);

image = (report(gb)[framebox(1)])<<getpicture;

new window("sample",image);


12757_pastedImage_2.png

Craige
Craige_Hales

Staff

Joined:

Mar 21, 2013

and here's the rest:

New Window( "sample 2", g = Graph Box() );

g[framebox( 1 )] << AddImage(

    Image( image ),

    bounds( Left( 0 ), Right( 100 ), top( 90 ), bottom( 10 ) )

);

12764_pastedImage_2.png

note how you place the image corners.  If the user zooms, the image may stretch...

12765_pastedImage_3.png

Craige