What's New

What's New in SAS/GRAPH 9.2


Overview

The changes and enhancements for SAS/GRAPH 9.2 are very extensive. Highlights include the following:


The SAS/GRAPH Statistical Graphics Suite

ODS Statistical Graphics (referred to as ODS Graphics for short) is major new functionality for creating statistical graphics that is available in a number of SAS software products, including SAS/STAT, SAS/ETS, SAS/QC, and SAS/GRAPH. Many statistical procedures have been enabled to use this functionality, and these procedures now produce graphs as automatically as they produce tables. In addition, the new statistical graphics (SG) family of SAS/GRAPH procedures use this functionality to produce plots for exploratory data analysis and customized statistical displays.

ODS Graphics includes the new SAS/GRAPH statistical graphics suite. This suite provides the following new features:

SAS/GRAPH statistical graphics procedures

provide a simple syntax for creating graphics commonly used in exploratory data analysis and for creating customized statistical displays. These new procedures include the SGPANEL, SGPLOT, and SGSCATTER procedures. In addition, the SGRENDER procedure provides a SAS procedure interface to the new Graph Template Language. For more information, including changes and enhancements for SAS 9.2 Phase 2, see SAS/GRAPH: Statistical Graphics Procedures Guide.

Graph Template Language (GTL)

is the underlying language for the default templates that are provided by SAS for procedures that use ODS Statistical Graphics. You can use the GTL either to modify these templates or to create your own highly customized graphs. Templates written with the GTL are built with the TEMPLATE procedure. For more information about Graph Template Language, see the SAS/GRAPH: Graph Template Language Reference and the SAS/GRAPH: Graph Template Language User's Guide.

ODS Graphics Editor

is an interactive editor that enables you to edit and enhance graphs that are produced by procedures that use ODS Statistical Graphics. You can use the ODS Graphics Editor to modify the existing elements of a graph such as titles and labels, or to add features such as text annotation for data points. For more information, including changes and enhancements for SAS 9.2 Phase 2, see SAS/GRAPH: ODS Graphics Editor User's Guide.

ODS Graphics Designer

provides a point-and-click interface for creating ODS graphics. Using the ODS Graphics Designer does not require knowledge of ODS templates or the Graph Template Language. With the ODS Graphics Designer, you can easily create multi-cell graphs, classification panels, scatter plot matrices, and more. You can save your output as an image file or as an ODS Graphics Designer file (SGD file) that you can edit later.

The ODS Graphics Designer is available beginning with SAS 9.2 Phase 2. For more information, including information about changes and enhancements for the third maintenance release of SAS 9.2, see SAS/GRAPH: ODS Graphics Designer User's Guide.

Note:   For additional information on the ODS Statistical Graphics functionality, see SAS Output Delivery System: User's Guide and SAS/STAT User's Guide.  [cautionend]


The SAS/GRAPH Network Visualization Workshop

The Network Visualization (NV) Workshop application enables you to visualize and investigate the patterns and relationships hidden in network data (node-link data). Some common applications that use network data include supply chains, communication networks, Web sites, database schema, and software module dependencies. NV Workshop is designed for visualizing large networks. Using a combination of data tables, statistical graphs, and network graphs, NV Workshop enables you to extract information that would otherwise remain hidden. Help is available from the menu within the product. To start NV Workshop, select Start [arrow] Programs [arrow] SAS [arrow] SAS GRAPH NV Workshop 2.1.

For more information, including changes and enhancements for SAS 9.2 Phase 2, see SAS/GRAPH: Network Visualization Workshop User's Guide.


Support for Multiple Open ODS Destinations

If you have multiple ODS destinations open, SAS/GRAPH automatically selects the appropriate device for each destination. In addition, each graph uses the ODS style associated with each destination. You do not need to specify a device or style to get optimal results. For example, if you do not specify a device, then SAS/GRAPH automatically selects the PNG device for the HTML destination if it is open and the SASEMF device for the RTF destination.

Also, if you have multiple ODS destinations open and you are using a device other than the Java or ActiveX devices (ACTIVEX, JAVA, ACTXIMG, or JAVAIMG), a different GRSEG is created for each open destination. The GRSEGs for the first destination are stored in WORK.GSEG. The GRSEGs for any other open destinations are stored in catalogs named according to the destinations, for example, WORK.HTML.


Support for ODS Styles

All SAS/GRAPH procedures and devices now support ODS styles. By default, all colors, fonts, symbols, and graph sizes are derived from the current style. Procedure statement options and SAS/GRAPH GOPTIONS override individual elements of the style, so you can easily customize the appearance of any graph.

Additionally, the colors used by the styles have been updated to enhance the appearance of your graphics output.

The use of ODS styles by default is controlled by the GSTYLE system option.


Devices


Colors


Fonts and Font Rendering

TrueType Fonts Supplied by SAS
Albany AMT* Thorndale Duospace WT SC GungsuhChe
Cumberland AMT* Thorndale Duospace WT TC Dotum
Thorndale AMT* Arial Symbol* DotumChe
Symbol MT Times New Roman Symbol* Gulim
Monotype Sorts MS PMincho GulimChe
Monotype Sans WT J MS Mincho NSimSun
Monotype Sans WT K MS PGothic SimHei
Monotype Sans WT SC MS UI Gothic SimSun
Monotype Sans WT TC Batang PMingLiU
Thorndale Duospace WT J BatangChe MingLiU
Thorndale Duospace WT K Gungsuh HeiT
* Albany AMT, Cumberland AMT, Thorndale AMT, Arial Symbol, and Times New Roman Symbol are font families. Normal, bold, italic, and bold italic versions of these fonts are provided.


Changing the Appearance of Output to Match That of Earlier SAS Releases

SAS/GRAPH 9.2 introduces many new features that significantly change the default appearance of your SAS/GRAPH output. To produce output that looks as if it was produced with previous versions of SAS/GRAPH, do the following:


Procedures


Support for Long Filenames

The NAME= option for each procedure has been enhanced to allow you to specify filenames up to 256 characters long for graphics output files (PNG files, GIF files, and so on). See the documentation for the specific SAS/GRAPH procedures for more information.


GAREABAR Procedure

The GAREABAR procedure has the following new options and enhancements:


GBARLINE Procedure

The GBARLINE procedure has the following new options and enhancements:


GCHART Procedure

The GCHART procedure has the following new options and enhancements:


GCONTOUR Procedure

The GCONTOUR procedure has the following changes and enhancements.


GEOCODE Procedure

The new GEOCODE procedure enables you to add geographic coordinates (latitude and longitude) to data sets that contain location information such as mailing addresses. You can also perform geolocation, which is adding geographic coordinates to non-address locations such as sale territories.

For SAS 9.2 Phase 2 and later, the new RANGE geocoding method enables you to perform geolocation for IP addresses.

For the third maintenance release of SAS 9.2, the new STREET geocoding method enables you to perform geolocation for street addresses.


GINSIDE Procedure

The new GINSIDE procedure determines which polygon in a map data set contains the X and Y coordinates in your input data set. For example, if your input data set contains coordinates within Canada, you can use the GINSIDE procedure to identify the province for each data point.


GKPI Procedure

The new GKPI procedure generates key performance indicators, including sliders, bullet graphs, speedometers, dials, and traffic lights. This GKPI procedure is supported by the JAVAIMG device only.


GMAP Procedure

The GMAP procedure has the following new features:


GPLOT Procedure

The GPLOT procedure has the following new options and enhancements:


GPROJECT Procedure

The NODATELINE option enables contiguous projections when projecting maps that cross the line between 180 degrees and -180 degrees longitude.

The following options for the GPROJECT procedure have been renamed:

Old Name New Name
DEGREE DEGREES
PARALEL1 PARALLEL1
PARALEL2 PARALLEL2


GRADAR Procedure

The GRADAR procedure has the following new options and enhancements:


GREMOVE Procedure

The GREMOVE procedure has the following new options:


GTILE Procedure

The new GTILE procedure enables you to create and display tile charts using the Java or ActiveX device drivers. Tile charts are designed for visualizing a large quantity of hierarchical-type data and are sometimes referred to as rectangular tree maps. Tile charts display rectangles of varying sizes and colors based on the magnitude of the variables specified and provides drill-down links to more detailed data.


MAPIMPORT Procedure

The ID statement for the MAPIMPORT procedure enables you to group related polygons.


Global Statements


Graphics Options


Transparent Overlays

Transparent overlays from GIF files are now supported in SAS/GRAPH output. You can use transparent GIFs with the IMAGE function in the Annotate facility and with the IBACK and IFRAME graphics options.


ActiveX Control

The following are enhancements for the ActiveX Control:


Java Map Applet

The Java Map Applet user interface enables you to change block sizes.

Support has been added for the MENUREMOVE parameter, which enables you to remove menu items from the applet user interface.


Java Tilechart Applet

The new Java Tile Chart applet creates and displays tile charts. Tile charts are designed for visualizing a large quantity of hierarchical-type data and are sometimes referred to as rectangular tree maps. They display rectangles of varying sizes and colors based on the magnitude of the variables specified and provide drill-down links to more detailed data. You can generate the applet with the GTILE procedure and the JAVA device.


The Annotate Facility

The following new features are available for the Annotate facility:


New Map Data Sets

New map data sets are provided for Antarctica (ANTARCTI, ANTARCT2), Montenegro (MONTENEG, MONTENE2), Romania (ROMANIA, ROMANIA2), Rwanda (RWANDA, RWANDA2), and Serbia (SERBIA, SERBIA2).

The continent map data sets now have corresponding feature data sets (ANTARCT2, AFRICA2, EUROPE2, OCEANIA2, NAMERIC2, SAMERIC2).

Note:   Antarctica uses the new continent code 97.  [cautionend]


Updated Map Data Sets

Some of the map data sets in the MAPS library have been updated. Changes to the Map Data Sets contains a list of the changes.

Changes to the Map Data Sets
Data Set(s) Changes
Continent data sets (ASIA, AFRICA, EUROPE, NAMERICA, OCEANIA, SAMERICA) updated to include new geographic features. Each data set includes a new DENSITY variable.

Brunei, Indonesia, and the Philippines have moved from OCEANIA to ASIA. The continent code for these countries has changed from 96 to 95.

OCEANIA replaces SPACIFIC as continent 96. Tasmania has been added to the OCEANIA data set.

CHINA, CHINA2 updated with new province names and ID numbers. The new OLDID and OLDIDNAME variables in the CHINA2 data set contain the old ID numbers and province names.

Because the ID numbers and province names have changed, you might need to change your response data in any existing SAS programs that use these data sets.

GERMANY, GERMANY2 updated with new districts and states. The following new variables have been added:
  • AREA

  • DISTNAME

  • DISTRICT

  • ID2

The IDNAME variable contains the values that were previously in IDNAME2. The IDNAME2 variable has been removed.

INDIA, INDIA2 updated with new states and new ID numbers. The new OLDID variable in the INDIA2 data set contains the old ID numbers. Additionally, the IDNAME2 variable in the INDIA2 data set contains alternate spellings for the state names. The INDIA data set contains a new DENSITY variable.

Because the ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

ITALY, ITALY2 updated with new provinces and ID numbers. The new OLDID variable in the ITALY2 data set contains the old ID numbers. The ITALY data set contains new DENSITY, NUTS, and REGNAME2 variables.

Because the ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

JAOSAKA, JAOSAKA2 updated with new ID values. The new TYPE variable in JAOSAKA2 contains feature types.
JATOKYO, JATOKYO2 updated with new ID values. The new TYPE variable in JATOKYO2 contains feature types.
LUXEMBOU, LUXEMBO2 updated with more detail and new variables. The LUXEMBOU data set has a new DENSITY variable. The LUXEMBO2 data set has the following new variables:
  • DISTNAME

  • DISTRICT

  • IDNAME2

  • NUTS4

NAMES

(feature table for the WORLD data set)

contains three new variables:
ID2

for territories, specifies the ID values for the countries that the territory is associated with. For example, Greenland has an ID2 value of 315 because it is a territory of Denmark.

If a territory is claimed by more than one country, its ID2 value might consist of several three-digit ID values to identify each country.

_REGION_

specifies a geographic region for each country or territory. For example, Panama belongs to the Central America region.

TERRITORY

for territories, describes the association between the territory and the country or countries that are identified by ID2. For example, Togo is described as Overseas territory of France.

PHILIPPI, PHILIPP2 updated with more detail and new variables. The PHILIPPI data set has a new DENSITY variable. The PHILIPP2 data set has the following new variables:
  • ISLANDG

  • ISLAND_GROUP

  • OLDID

  • PROVINCE

  • PSGC_PROV

  • PSGC_REG

  • REGION

  • REGNAME

  • REGNAME2

The ID numbers for these data sets have changed. You might need to change your response data in any existing SAS programs that use these data sets.

POLAND, POLAND2 updated with new values and variables. The POLAND data set has a new DENSITY variable. The POLAND2 data set has new PROVNAME and PROVNAME2 variables.
SPACIFIC renamed to OCEANIA.
SPAIN, SPAIN2 updated with values and new variables. The SPAIN data set contains a new DENSITY variable.

The new OLDID variable in the SPAIN2 data set contains the old ID numbers. The new REGION and REGNAME variables identify regions. The new IDNAME2 and REGNAME2 variables contain alternate spellings for the province and region names.

Because the ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

SWEDEN, SWEDEN2 updated with new provinces and ID numbers. The SWEDEN data set contains a new DENSITY variable. The new OLDID variable in the SWEDEN2 data set contains the old ID numbers. The new REGNAME variable contains region names.

Because the ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

SWITZERL, SWITZER2 updated with new province names and ID numbers, and new variables. The new OLDID and OLDNAME variables in the SWITZER2 data set contains the old names and ID numbers. The SWITZERL data set contains new DENSITY and LAKE variables.

Because the province names and ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

THAILAND, THAILAN2 updated with more detail and new variables. The THAILAND data set has a new DENSITY variable. The THAILAN2 data set has the following new variables:
  • IDNAME2

  • OLDID

  • REGION

  • REGNAME

The provinces have new ID numbers. The new OLDID variable in the THAILAN2 data set contains the old ID numbers.

Because the ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

UKRAINE, UKRAINE2 updated with more detail and new variables. The UKRAINE data set has a new DENSITY variable. The UKRAINE2 data set has the following new variables:
  • IDNAME2

  • OLDID

  • OLDIDNAME

The provinces have new names and ID numbers. The new OLDIDNAME and OLDID variables in the UKRAINE2 data set contain the old province names and ID numbers.

Because the province names and ID numbers have changed, you might need to change your response data in any existing SAS programs that use these data sets.

US, USCENTER, USCITY Puerto Rico added as state 72. The new STATECODE variable in the US and USCITY data sets contains two-letter state abbreviations.

The USCITY data set has new cities, and some city names have been standardized. The PLACE variable now includes the state FIPS code as the first two digits.

Note:   The projected X and Y values might be different due to the need to re-project the data sets with the addition of more cities in USCITY.  [cautionend]

VIETNAM, VIETNAM2 updated with more detail and new variables. The VIETNAM data set has a new DENSITY variable. The VIETNAM2 data set has the following new variables:
  • PROVINCE

  • REGION

  • REGNAME

The ID numbers for these data sets have changed. You might need to change your response data in any existing SAS programs that use these data sets.

WORLD simplified to use fewer observations. In addition, the following changes have been made:
  • The values are now projected using the CYLINDRI algorithm.

  • Continent 96 has been renamed from South Pacific to Oceania.

  • Antarctica has been added as continent 97.

  • Brunei, Indonesia, and the Philippines have been reassigned from continent 96 to continent 95.

  • French Southern Territories and Heard & McDonald Islands have been reassigned from continent 96 to continent 97.

  • St. Helena has been reassigned from continent 91 to continent 94.

  • The former country of Yugoslavia has been split into Serbia and Montenegro.

  • Newfoundland has been added to Canada (ID 260).

  • Tasmania has been added to Australia (ID 160).

  • More data points are included for Cuba (ID 300).

  • The Galapagos Islands have been added to Ecuador (ID 325).

  • Hong Kong is now included as part of China.

YUGOSLA, YUGOSLA2 replaced by the new SERBIA, SERBIA2, MONTENEG, MONTENE2 data sets.


Map Data Set Descriptions

Descriptive labels have been added to the map data sets in the MAPS library.


New Data Set for Military ZIP Codes

The new ZIPMIL data set in the SASHELP library contains ZIP codes for U.S. military post offices.


Changes in SAS/GRAPH Documentation