BookmarkSubscribeRSS Feed
AndersBergquist
Quartz | Level 8
I am trying to creat a vbar with sgplot and it work great. Because it is sample data I presenting, I also want to present the range the result can vary within.

There is one option in sgplot vbar, limits, but it is based on the printed data. My limits is from proc surveymeans.

Is there a way to print these bars?
2 REPLIES 2
DanH_sas
SAS Super FREQ
In my paper called "Secrets of the SG Procedures" (http://support.sas.com/resources/papers/proceedings09/324-2009.pdf), I discuss the topic of displaying custom limits. Currently, the bar chart in the SG procedures does not allow you to specify custom limits; but there are a couple of workarounds:

1) Wide needles (discussed in the paper)
2) Use GTL to define a BarChartParm (a parameterized bar chart)

Both options require the data to be pre-summarized. Let me know if you need any details on option #2.

Thanks!
Dan
AndersBergquist
Quartz | Level 8
Thank You very much. This solve my problem, even if it is more like a work around than a proper solution.

I hope SAS will introduce costum limits to bar later, or even better, SGANNOTATE!

One more time Thanks.

/Anders

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 686 views
  • 0 likes
  • 2 in conversation