Graph on map - template

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Graph on map - template

88videos
This post was updated on .
Hello again :)

I got problem with maps.

I don't know how to save template or set some map options (color, legend
place etc.) by syntax.

data for example.
data list list
/id(A60).
begin data.
 'Alberta'
 'British Columbia'
 'Manitoba'
 'New Brunswick'
 'Newfoundland and Labrador'
 'Northwest Territories'
 'Nova Scotia'
 'Nunavut'
 'Ontario'
 'Prince Edward Island'
 'Quebec'
 'Saskatchewan'
 'Yukon'
end data.
EXECUTE.
dataset name b1.
DATASET ACTIVATE b1.

compute var2=trunc(RV.UNIFORM(1, 4), 1).
execute.

value labels
/var2
1 'low level'
2 'average'
3 'high level'
.


* and I want to do graph like this. But I need to use GUI to personalize
look , change color, border, background etc. .

...
--



*Is it possible to save this options as template, or maybe this can be added
via syntax???

*I noticed that templates in this graph module are in different format (not
.sgt) .

Any advices???


DATASET ACTIVATE b1.
GGRAPH
  /GRAPHDATASET NAME="graphdataset"
    VARIABLES=var2[LEVEL=nominal] id[LEVEL=nominal]
    MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="Polygon Overlay Map"[LOCATION=LOCAL]
    MAPPING( "Data_Key"="id"[DATASET="graphdataset"]
"color"="var2"[DATASET="graphdataset"]
    "Subtitle"='GRAPH for example' "Title"='CANADA'))
    VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]
    LABEL='POLYGON OVERLAY MAP: id-var2'
    DEFAULTTEMPLATE=NO
    VIZMAP="CanadaProvinces2011"[LOCATION=LOCAL TYPE=DATA mapkey="English -
PRENAME"
    SHOWALLFEATURES=NO]
    VIZMAP="CanadaProvinces2011"[LOCATION=LOCAL TYPE=REFERENCE ].






Reply | Threaded
Open this post in threaded view
|

Re: Graph on map - template

Andy W
Sorry, I cannot help on this one, I've never figured out the VIZTEMPLATES
(documentation for the viz. designer thing was always pretty sparse). Even
with just inline GPL I've always had trouble fixing legends to different
locations and getting font sizes to stay the same last time I bothered with
such things.



-----
Andy W
[hidden email]
http://andrewpwheeler.wordpress.com/
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/