Data visualization with SAS programming

Tips for quick line plots?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 129
Accepted Solution

Tips for quick line plots?

I'm doing some exploratory plots of the form:

proc gplot;

  plot v1*v2=v3;

V3 takes about 25 different values. I want to draw line plots. If I just run with the default settings I get symbols. If I add

symbol interpol=join

I get lines for the first 12 series, but just symbols for the rest.

I presume I could individually define 25 different symbol statements, but is there a quicker way? I'm after something useful for diagnostic rather than presentation purposes.


Accepted Solutions
Solution
‎12-15-2014 02:55 PM
Grand Advisor
Posts: 10,211

Re: Tips for quick line plots?

You could try

proc sgplot;

     series x=v2 y=v1 /group=v3;

run;

control of line and marker appearance are quite a bit different than the traditional graphics plot and vary as new options are added to the SG procedures with each of the last few releases.

View solution in original post


All Replies
Solution
‎12-15-2014 02:55 PM
Grand Advisor
Posts: 10,211

Re: Tips for quick line plots?

You could try

proc sgplot;

     series x=v2 y=v1 /group=v3;

run;

control of line and marker appearance are quite a bit different than the traditional graphics plot and vary as new options are added to the SG procedures with each of the last few releases.

Frequent Contributor
Posts: 129

Re: Tips for quick line plots?

Thanks. Hadn't looked at sgplot before, but it does seem to have more sensible default values.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 344 views
  • 0 likes
  • 2 in conversation