2012-05-05 3 views
1

음모를 꾸미려고하는 데이터는 한 달 동안 datetime (SAS datetime 형식)에 대한 온도입니다. x 축상의 간격을 1 시간 또는 1 일로하고 싶습니다. 아래 코드에서 물음표를 어디에 넣어야 하는지를 알고 있습니까?sgplot - x 축의 SAS 시계열 데이터

감사합니다.

%macro makeplot; 
proc sgplot data = temp.heating; 
where dwelling = 8 & room = 1; 
series x = datetime y = temp; 
*xaxis values = (&start_date_time to &end_date_time by ?); 
run; 

%mend makeplot; 
%makeplot; 

답변

1

SAS datetimes store 초이므로 86400은 일을 제공하고 3600은 시간을줍니다.

+0

대단히 감사합니다. :) –