BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
csetzkorn
Lapis Lazuli | Level 10

I am using this code:

 

AXIS1 Interval=EVEN;

proc gradar data=SomeData;
	chart Cat1
	/
	overlay=Cat2
	sumvar=Measure
	des=''
	spiderweb
	cstars=(blue, red, black, green)
	wstars=4 4 4 4
	lstars=1 1 1 1 
	staraxes= (AXIS1, AXIS1, AXIS1, AXIS1)
	;	
run;

It works OK but is it possible to also define the staraxes to have a min of 0 and max of 10 in step sizes of 0.5? Something along those lines:

 

GRID VALUES = (0 TO 10 BY 0.5)

This:

 

AXIS1 Interval=EVEN order=(0 to 10);

does not product the desired results.

 

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

Here is a gradar chart where I set the axes to go from 0 to 100 by 25. If this is similar to what you're wanting, you should be able to create something similar with your data (the code below should give you some tips):

 

http://robslink.com/SAS/democd47/world_cup_radar.htm

http://robslink.com/SAS/democd47/world_cup_radar.sas

 

radar.png

View solution in original post

4 REPLIES 4
ballardw
Super User

You have the option Interval=Even on your one shown axis definition. Is your data logarithmic? Note that some of the log related axis statements are noted in the documentation as not supported by GRADAR. Logstyle, Logbase which would be the basic options to control log axis appearance are not supported by GRADAR.

 

You might try order=(0.5 to 10 by 0.5) without the Interval=Even but I'm not at all sure if that will yield "desired results" with log data. If the data is log then the order values are supposed to match the logbase and logstyle settings, but as documented these aren't supported by Gradar.

 

csetzkorn
Lapis Lazuli | Level 10

Thanks. I tried:

 

AXIS1 order=(0.5 to 10 by 0.5)

Unfortunately this distorts the values, which btw are not logged but simply values between 0 and 10. 

ballardw
Super User

Without data is hard to tell what is going "wrong". As a minimum you might post an image of the result you are getting and describe what is undesired or needed.

Best would be to provide some example data in the form of a data step so we can test code.

 

Why were you using the INTERVAL=Even if the data scale wasn't a log? That is basically the only option involved.

 

 

GraphGuy
Meteorite | Level 14

Here is a gradar chart where I set the axes to go from 0 to 100 by 25. If this is similar to what you're wanting, you should be able to create something similar with your data (the code below should give you some tips):

 

http://robslink.com/SAS/democd47/world_cup_radar.htm

http://robslink.com/SAS/democd47/world_cup_radar.sas

 

radar.png

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1076 views
  • 1 like
  • 3 in conversation