Data visualization with SAS programming

Problem with MINOR option

Reply
Contributor
Posts: 33

Problem with MINOR option

Hi everybody,

I have this problem with a proc gchart using axis statement :

WARNING: The MINOR= option on AXIS statement 2 was ignored

         because the Nature de l'événement axis does not

         support MINOR=.

So i can't have minor ticks on my horiszontal axis.

SAS Employee
Posts: 967

Problem with MINOR option

Are you trying to use it on the maxis? (ie, midpoint/bar axis?)

Contributor
Posts: 33

Problem with MINOR option

Indeed I am using it on MAXIS for Vbar GCHART

SAS Employee
Posts: 967

Problem with MINOR option

That's not allowed (there aren't really even "major" tickmarks on the bar/midpoint axis) Smiley Happy

If you want minor tickmarks on the bar/midpoint axis, you'll have to use gplot, and the 'needle' interpolation (with large width= values, so that the needles look like bars).  In gplot, the (fake) bars will be proportionally spaced, and then it will make mathematical sense to have the concept of tickmarks.

Contributor
Posts: 33

Problem with MINOR option

Oh really!! so i can't have subgroups with gplot not like gchart , isn't it?

SAS Employee
Posts: 967

Problem with MINOR option

Well ... anything's "possible" -- you just have to ask, is the desired visual effect (in this case, minor tickmarks between bars) important enough to jump through hoops (more complex data manipulations, and less straightforward code) required to get the desired visual effect...

With gplot 'needle' plots, you can overlay the needle segments such that it produces the visual effect of subgrouped bars (but considerable data-manipulation is required to make this work).  Here's an example (in this case I'm using skinny needles, and in your case you'd use wide needles).  Note that with the data I'm using, having the bars spaced proportionally (on a time axis), and having tickmarks "between" the bars is actually meaningful.

http://robslink.com/SAS/democd12/barcpu.htm

http://robslink.com/SAS/democd12/barcpu_info.htm

Contributor
Posts: 33

Problem with MINOR option

Okey, I have to think about it very interesting, but using this i'll have to change all my programs, may be let down the minor tricks :smileygrin:

SAS Employee
Posts: 967

Problem with MINOR option

Do the minor ticks in the non-SAS maps you're converting to SAS serve a purpose?

Some softwares just stick in "decorative" minor tickmarks between bars, which serve no real purpose.

Contributor
Posts: 33

Problem with MINOR option

no it is just a visual choice i think, "communication direction" wants this visual, that's all

Ask a Question
Discussion stats
  • 8 replies
  • 275 views
  • 0 likes
  • 2 in conversation