Inverted Axis

Expand Messages
• Hi, This is probably a dumb question, but I ve spent some time trying to figure it out with no luck. Is it possible to invert an axis? For example, I want the
Message 1 of 2 , Feb 11, 2010
• 0 Attachment
Hi,

This is probably a dumb question, but I've spent some time trying to figure it out with no luck.

Is it possible to invert an axis? For example, I want the smallest Y value to be on top of the graph, and the largest Y value to be on the bottom.

So my chart could look like:

1 *
2 ***
3 **
4 *
5
1 2 3 4 5

I've tried switching the values in areadef rectangle, and by giving the large value to yrange first, but both just result in an error message.

I'm thinking of maybe using negative numbers as a hack...

Any suggestions would be great. Thanks.
• Hello... If the axis in question could be considered categorical (rather than continuous numeric) then yes. Use proc categories to define a set of categories
Message 2 of 2 , Feb 16, 2010
• 0 Attachment
Hello... If the axis in question could be considered categorical (rather than continuous numeric) then yes.   Use proc categories to define a set of categories (in the below case simply the numbers 1 thru 5 and it looks like you are doing a histogram so the y axis could be considered categorical).

Continuous numeric axes are a different story.... there's no straightforward way, altho it is possible to play games like rendering everything in negative space then hiding the minus signs.

Steve

On Fri, Feb 12, 2010 at 12:34 AM, imbue wrote:

Hi,

This is probably a dumb question, but I've spent some time trying to figure it out with no luck.

Is it possible to invert an axis? For example, I want the smallest Y value to be on top of the graph, and the largest Y value to be on the bottom.

So my chart could look like:

1 *
2 ***
3 **
4 *
5
1 2 3 4 5

I've tried switching the values in areadef rectangle, and by giving the large value to yrange first, but both just result in an error message.

I'm thinking of maybe using negative numbers as a hack...

Any suggestions would be great. Thanks.

Your message has been successfully submitted and would be delivered to recipients shortly.