BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tiny_Kane
Obsidian | Level 7

Hi all,

I just want to create an overlay plot. I defined the first plot symbol as square and the second one as dot, however the result shows both of them are squares. I attache the code and the plot below. Does any one know why the SYMBOL2 statement does not work? Thank you in advance!

goptions reset=all;

symbol1 interpol=join

        value=square;

symbol2 interpol=join

        value=dot

        ;

axis1 order=(1 to 2 by 1) offset=(2,2)

label=("Cycle");

axis2

label=("Participants");

legend1 label=none

position=(top center inside)

mode=share;

proc gplot data=act_exp1;

plot actual*cycle expect*cycle/overlay legend=legend1

                               vref= 5 to 35 by 5

                               haxis=axis1

                               vaxis=axis2;

run;

Kane

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

To move the next statement, you have to specify both the color AND the value. However, if you just want to get the color from the ODS style, use "_style_" for the color:

symbol1 interpol=join color=_style_

        value=square;

symbol2 interpol=join color=_style_

        value=dot

        ;

Hope this helps!

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

To move the next statement, you have to specify both the color AND the value. However, if you just want to get the color from the ODS style, use "_style_" for the color:

symbol1 interpol=join color=_style_

        value=square;

symbol2 interpol=join color=_style_

        value=dot

        ;

Hope this helps!

Tiny_Kane
Obsidian | Level 7

It works, thank you very much, Dan.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 2 replies
  • 875 views
  • 0 likes
  • 2 in conversation