Data visualization with SAS programming

Reverse left and right axes on bar chart with line overlay-proc gbarline

Reply
Occasional Contributor
Posts: 5

Reverse left and right axes on bar chart with line overlay-proc gbarline

Hi,

I'm creating a bar chart with a line overlay using proc gbarline in SAS 9.2.  The graphs found in this paper are representative examples of what I'm doing:

https://analytics.ncsu.edu/sesug/2010/CC15.Maddox.pdf

 

Is there anyway to switch the left and right axes?  In other words, I'd like the left axis to be % drop shipments and the right axis to be number of orders.

 

Thank you!

-C

Super User
Posts: 13,008

Re: Reverse left and right axes on bar chart with line overlay-proc gbarline

Post the code you are currently using along with any supporting statements such as AXIS Pattern or Symbol. Axis and Raxis are likely what you are looking for.

 

You might also want to consider moving to Proc SGPLOT which has more options for overlaying multiple graphs with individual controls.

 

 

VBAR or VBARBASIC with VLINE or VBARPARM with Series plots in Sgplot.

PROC Star
Posts: 1,190

Re: Reverse left and right axes on bar chart with line overlay-proc gbarline

The first thing you should do is switch to PROC SGPLOT. 

 

The next thing you should do is browse the Graphically Speaking Blog. I would be surprised if you can't find your answer there.

Ask a Question
Discussion stats
  • 2 replies
  • 119 views
  • 2 likes
  • 3 in conversation