<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />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
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 ) )
);

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

here's the first part: grab an image from a graph builder display frame:
dt=open("$sample_data/big class.jmp");
gb = dt<
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)])<
new window("sample",image);
