SGPLOT

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

SGPLOT

I would like to add reference lines to the following plot at specific dates MDY (11/21/2008, 03/06/2009, 07/02/2009, 10/09/2009). How can I do this without needing to know the integer values corresponding to each date?

proc sgplot data = ma;

  where id = 100;

  series x=date y=ct_ma;

  refline 18030 18000/ axis = x;

run;

Regards,

Raphael


Accepted Solutions
Solution
‎08-20-2014 03:57 PM
Super User
Posts: 17,837

Re: SGPLOT

Try specifying them as date literals?

ie

"21Nov2008"d in the refline statement

View solution in original post


All Replies
Solution
‎08-20-2014 03:57 PM
Super User
Posts: 17,837

Re: SGPLOT

Try specifying them as date literals?

ie

"21Nov2008"d in the refline statement

Contributor
Posts: 20

Re: SGPLOT

Thanks!

☑ This topic is SOLVED.

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

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