SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing and Exporting Charts and Plots
Sizing Graphs


Using the HSIZE= and VSIZE= Options

If you create your graph in the GRAPH window, use the HSIZE= and VSIZE= options to size your graph. The HSIZE= option specifies the width of the graphics output area, and the VSIZE= option specifies the height of the graphics output area.


General form, HSIZE= and VSIZE= options:
HSIZE=horizontal-size <IN | CM | PT>

VSIZE=vertical-size <IN | CM | PT>

where horizontal-size and vertical-size are a positive number and may be followed by a unit specification, either IN for inches (default), CM for centimeters, or PT for points. The default unit is IN.


For example, the GOPTIONS statement below specifies both a height and width of 5 inches. To add a border around the graph, use the BORDER option.
     goptions hsize=5in vsize=5in border;
proc gchart data=clinic.admit;
vbar actlevel / sumvar=fee;
run;

The program creates the following bar chart. The border outlines the graphics output area defined by HSIZE= and VSIZE=.


Vertical bar chart



back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement