BookmarkSubscribeRSS Feed
Oleg_L
Obsidian | Level 7
Hello SAS-programmers!

I build the plot for the year period (365 points).
But the plot area is not wide enough and plot symbols are too close together.
So it's difficult to make visual differences of one plot line from another when black-white printing.
Is it possible to build interpolation line on 365 points but print symbol values (circle, triangle, square) not for every point?
I use SAS 9.1.3.

My code is below:

symbol1 interpol=join
value=circle color=blue
height=0.7 ;

symbol2 interpol=join
value=triangle color=red
height=0.7 ;

symbol3 interpol=join
value=square color=green
height=0.7 ;

legend1 label=none position=bottom;


axis1 color=black width=3 label=(color=black height=0.75 "usd'000") minor=(number=1) value=(height=0.75);

axis2 color=black width=3 label=none minor=(number=3)
order=(&order_diag) offset=(1,1) value=(height=0.75);


goptions device=win cback=white
ftext="Arial" htitle=1;


proc gplot data=d_tot; format ca comma10. date ddmmyy8.;
plot ca*date=kind /grid cframe=white vaxis=axis1 haxis=axis2 legend=legend1;
run;
quit; Message was edited by: Oleg_1976
1 REPLY 1
Oleg_L
Obsidian | Level 7
I solved the problem by using different line types:

symbol1 interpol=join
value=none color=blue line=1
height=0.7 ;

symbol2 interpol=join
value=none color=red line=2
height=0.7 ;

symbol3 interpol=join
value=circle color=green line=1
height=0.7 ;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 585 views
  • 0 likes
  • 1 in conversation