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.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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