Hi SAS,
I'm currently using SAS Eguide Version 5.1 (32bit). I have two issues below.
1. I have an issue positioning my graph. The x= seem to work but the y= is not working. I can't get my graph to move down the page. Please help. Half of the code below.
The ODS region x=0in y=0in height=3in width=4in;
Proc gplot data= work.a;
Plot distinct_a * mth = yr /
VAXIS=AXIS1
HAXIS=AXIS2
FRAME LEGEND=LEGEND1;
RUN;QUIT;
2. Can ODS layout handle GPLOT breakdown by multiple graphe? Code example below. There are three multiple line chart in the syntax below.
Proc gplot data= work.c
nocache;
Plot distinct_a * mth = yr /
VAXIS=AXIS1
HAXIS=AXIS2
FRAME LEGEND=LEGEND1;
by rule_type;
RUN;QUIT;
GPLOT produces device based graphics output and I am not sure how well specific devices (read graphic file formats) interact with ODS layout. I would strongly suggest trying this with with SGPLOT. Note that when you specify and ODS region that is smaller than the size currently used by GOPTIONS Hsize/Vsize and/or Hpixels/Vpixels is likely to cause all sorts of conflicts as the gplot output is build using the goptions size information and then likley trying to "fit" into the size of the ODS area.
GPLOT produces device based graphics output and I am not sure how well specific devices (read graphic file formats) interact with ODS layout. I would strongly suggest trying this with with SGPLOT. Note that when you specify and ODS region that is smaller than the size currently used by GOPTIONS Hsize/Vsize and/or Hpixels/Vpixels is likely to cause all sorts of conflicts as the gplot output is build using the goptions size information and then likley trying to "fit" into the size of the ODS area.
Thank you. SGplot is definitely the way to go.
In terms of second q, i also used sgplot with a where statement to breakdown my table into three graphs.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.