Data visualization with SAS programming

vbar and plot in one graph

Reply
Regular Contributor
Regular Contributor
Posts: 156

vbar and plot in one graph

Hello!

I'd like to have a vbar (proc gchart) and a plot graph in one graph. The x axis has for both the same values and the y axis the same scale. Can anybody tell me how to do this?

Best regards
Eva
Super Contributor
Super Contributor
Posts: 3,174

Re: vbar and plot in one graph

Suggest searching the SAS support http://support.sas.com/ website - here is a useful Google advanced search argument:

vbar chart overlay plot site:sas.com

Scott Barry
SBBWorks, Inc.
Super Contributor
Posts: 291

Re: vbar and plot in one graph

Eva;

There are at least 2 options. Proc GBarLine which I am not familiar with or Proc Gplot with 2 symbol statements. The one symbol statement would use i=join to produce the line, the other symbol statement would use i=needle to produce the "bars".

hth,
wd
Regular Contributor
Regular Contributor
Posts: 156

Re: vbar and plot in one graph

Hello!

Thanx for your help! for SAS 9.2 there is a proc sgplot. As I have SAS 9.1 I will use gbarline.

The two plots would be a solution too, yet our customer wants something more stunning.

Best regards,
Eva
Post a Question
Discussion Stats
  • 3 replies
  • 102 views
  • 0 likes
  • 3 in conversation