The SAS Output Delivery System and reporting techniques

SERIESPLOT in PROC TEMPLATE: breaks in lines for missing values are needed

Accepted Solution Solved
Reply
Contributor
Posts: 64
Accepted Solution

SERIESPLOT in PROC TEMPLATE: breaks in lines for missing values are needed

Hi folks,

I can't understand the behaviour of SAS PROC TEMPLATE in the following situation.

When I use the following data set:

ExpID;AA;BB;CC;DD;EE

1;5;25;9;65;14

the output as in the 1.jpg file.

But when I have missing values:

ExpID;AA;BB;CC;DD;EE

1;5;25; ;65;14

there is no relevant break in the curve (2.jpg).

How to do this like in the 3.jpg file?

To produce the lines I use the following code:

SERIESPLOT

X = ...

Y = ... / ... LINEATTRS = (PATTERN = SOLID COLOR = BLACK);

Thank you.


2.jpg3.jpg1.jpg

Accepted Solutions
Solution
‎12-29-2013 07:29 PM
SAS Super FREQ
Posts: 8,815

Re: SERIESPLOT in PROC TEMPLATE: breaks in lines for missing values are needed

Hi:

  With the SGPLOT procedure, the option is BREAK:

proc sgplot data=whatever;

  series x=xvar y=yvar / break markers datalabel;

run;

So, I suspect that with PROC TEMPLATE, it will be a BREAK option on the SERIESPLOT statement. And, indeed, if you check the documentation, since the options are listed in alpha order, you will find what you need in the doc:

SAS(R) 9.4 Graph Template Language: Reference, Second Edition

cynthia

View solution in original post


All Replies
Solution
‎12-29-2013 07:29 PM
SAS Super FREQ
Posts: 8,815

Re: SERIESPLOT in PROC TEMPLATE: breaks in lines for missing values are needed

Hi:

  With the SGPLOT procedure, the option is BREAK:

proc sgplot data=whatever;

  series x=xvar y=yvar / break markers datalabel;

run;

So, I suspect that with PROC TEMPLATE, it will be a BREAK option on the SERIESPLOT statement. And, indeed, if you check the documentation, since the options are listed in alpha order, you will find what you need in the doc:

SAS(R) 9.4 Graph Template Language: Reference, Second Edition

cynthia

Contributor
Posts: 64

Re: SERIESPLOT in PROC TEMPLATE: breaks in lines for missing values are needed

Thank you Smiley Happy.

🔒 This topic is solved and locked.

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

Discussion stats
  • 2 replies
  • 505 views
  • 1 like
  • 2 in conversation