Hi,
Can radars be created with proc sgplot or GTL using SAS 9.4 or do we have to use the old procedure proc gradar?
There's not a RADAR statement available in SGPLOT. You could technically build one from primitive parts -- here just showing circles and polygons, but you could enhance by adding labeled points (using the SCATTER statement) and vertical / horizontal lines using, e.g., the VECTOR statement.
data shapes;
* cirles ;
x=20;
y=20;
do i=1 to 5;
size=i*15;
output;
end;
* polygons ;
call missing(of x, y, size);
id=1; color=1;
px=20; py=20; output;
px=-10; py=40; output;
px=20; py=30; output;
px=50; py=70; output;
px=30; py=-20; output;
px=20; py=20; output;
id=2; color=2;
px=20; py=20; output;
px=-50; py=10; output;
px=-10; py=20; output;
px=40; py=30; output;
px=70; py=-50; output;
px=20; py=20; output;
run;
proc sgplot data=shapes noautolegend;
bubble x=x y=y size=size / absscale nofill;
polygon x=px y=py id=id /
colorresponse=color colormodel=(blue red)
outline fill transparency=0.4;
run;
However, whether the amount of effort it will take to get something better than you could with GRADAR (if that still exists) is worth it is up to you.
Hello ,
This is about radar charts in Visual Analytics !
Google search
+"radar chart" +"custom graph" site:blogs.sas.com
brings you to :
See also --> Visual Analytics Custom Graph Examples
https://github.com/sassoftware/va-custom-graphs
(I believe there's a radar chart object ... you can download the *.JSON file and import in your environment to make it available to you and your peers)
For more information on custom graph objects / graph templates / custom graph builder, you can do this Google search:
+"graph builder" +"custom graph" site:communities.sas.com
Ciao, Koen
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.