BookmarkSubscribeRSS Feed

[SAS 프로그래밍 고수 백승민] [GRADAR] GARADAR 넓이(비율) 조정

Started ‎06-11-2020 by
Modified ‎06-11-2020 by
Views 164

* SAS에서 그래프를 사용을 안해봐서 원하시는 답이 맞는지 모르겠네요?; 


axis1 color=red
      major=(height=1.75 width=10)
      value=(h=20pt)
      width=3;
axis2 color=blue;
axis3 color=green;
axis4 color=Black;

* Freq 변수를 사용하여 각 값의 크기를 지정이 가능하고, 범위를 조정하기 위하여

* starinradius(내부 크기 지정) / STAROUTRADIUS(외부 크기 지정);

* 옵션을 사용하시면 될거 같은데, 원하시는 답이 맞는지 모르겠네요;

PROC GRADAR DATA=cpi;
   CHART Field / freq=index
                 OVERLAY=City
                 starinradius=5
                 STAROUTRADIUS=100
                 staraxis=(axis1, axis2, axis3, axis4)
   ;
RUN;


---------------------------------------[ 원 문 ]---------------------------------------

 

여러 지수를 가지고 RADAR CHART를 그리려고 합니다. 아래와 같이 프로시져 입력을 했습니다.

DATA DM.cpi;
   INFILE 'D:\SAS data\cpi.txt' dsd delimiter='09'x;
   LENGTH City$ 10 Field$ 10;
   INPUT City$ Field$ Index @@;
RUN;

PROC GRADAR DATA=DM.cpi;
   CHART Field / 
      OVERLAY=City
   ;
RUN;

지수(2005=100)들 RANGE가 10 미만이고 5개도시의 지수가 비슷해서

그래프가 잘 나오지 않습니다. AXIS에 옵션을 주어서 범위를 주고 (예를 들어 95~110 사이로)

눈금 간격을 변형(예를 들어 0.1 단위로)하고 싶습니다.

AXIS 옵션을 어떻게 줘야 할까요?

 

데이터 파일 첨부합니다..

 

 

 

* 통계분석연구회 : http://cafe.daum.net/statsas

* 백승민홈페이지 : http://www.statwith.pe.kr

Version history
Last update:
‎06-11-2020 04:07 AM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Article Labels
Article Tags