BookmarkSubscribeRSS Feed
tal83
Calcite | Level 5
Here's my code.
I specified Justify and Height options, but I get a centerd title in a fix height (I tried to change the height, but it doesn't affect the graph)
What's wrong with my syntax?

Thanks in advance!
Tal

goptions reset=all;
legend1 label=('Station') value=(height=1 justify=left 'A' 'B' 'C' )shape=symbol(3,0.5)
position=(top right inside ) mode=protect down=3 across=1 frame;
title '(a)' JUSTIFY=left HEIGHT=3 ;

symbol1 i =join v=dot c=green h=0.1 cm;
symbol2 i =join v=dot c=blue h=0.1 cm;
symbol3 i =join v=dot c=red h=0.1 cm;
axis1 order=('5jan03:00:00'dt to '12jan03:00:00'dt by day)
label=(f=swiss h=0.5 cm 'Date and Time') minor=(number=24);
axis2 order = (0 to 60 by 10)
label=(f=swiss h=0.5 cm a=90 'O3 [ppb]');


proc gplot gout=w data=hh.jan_03_excel;
plot O3*d=stat_id /vaxis = axis2 haxis=axis1 LEGEND=LEGEND1
/*legend=legend2 */
name="O3 January 2003.gif";
where day in (5,6,7,8,9,10,11,12);
run; quit;
5 REPLIES 5
GraphGuy
Meteorite | Level 14
I'm not at a computer where I can try this right now, but IIRC you have to specify the title options *before* the text (ie, the options only affect the text *after* the option).

Therefore you'd need a title statement like ...

title JUSTIFY=left HEIGHT=3 '(a)';
tal83
Calcite | Level 5
That worked.
Thanks a lot (again) !
Tal
tal83
Calcite | Level 5
Is there anywhere on the web a detailed example of syntax for goptions+gplot, so that I can know , for the next time what is the correct order within each statement and between the statements (I tried google before asking you, but found nothing that helped me).

Thanks in advance,
Tal
Cynthia_sas
SAS Super FREQ
Hi:
Rather than doing a direct Google search, you might try support.sas.com's search facility (in the upper right-hand corner of the page). For example, searching on GOPTIONS in the search box, and limiting the search to Product Documentation, you can find these links:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/goptionschap.htm
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a000713550.htm

Similarly, searching with the string:
SAS/GRAPH TITLE and limiting the search to Product Documentation, resulted in this hit:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/titlechap.htm
where it states:
"You can use as many text strings and options as you want, but place the options before the text strings they modify. See Using Multiple Options."
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/titlechap.htm#title-multiopt...

The SAS/GRAPH documentation is excellent--voluminous--but excellent.

cynthia
Eva
Quartz | Level 8 Eva
Quartz | Level 8
Hi Tal,

there is a really good book: "The How-To Book for SAS/Graph Software" by Thomas Miron. And for more check "Quick Results with SAS/Graph Software" by Art Carpenter.

Best wishes
Eva

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 751 views
  • 0 likes
  • 4 in conversation