Posts Tagged ‘ Statistical Graphics ’

Create a bar chart with an "Others" category

January 14, 2013
By

When a categorical variable has dozens or hundreds of categories, it is often impractical and undesirable to create a bar chart that shows the counts for all categories. Two alternatives are popular: Display only the Top 10 or Top 20 categories. As I showed last week, to do this in
Read more »

Tags: , ,
Posted in SAS | Comments Off on Create a bar chart with an "Others" category

Create a bar chart with only a few categories

January 9, 2013
By

Sometimes a categorical variable has many levels, but you are only interested in displaying the levels that occur most frequently. For example, if you are interested in the number of times that a song was purchased on iTunes during the past week, you probably don't want a bar chart with
Read more »

Tags: , ,
Posted in SAS | Comments Off on Create a bar chart with only a few categories

Show percentages for bar charts with PROC SGPLOT

December 3, 2012
By

It seemed like an easy task. A SAS user asked me how to use the SGPLOT procedure to create a bar chart where the vertical axis shows percentages instead of counts. I assumed that there was some simple option that would change the scale of the vertical axis from counts
Read more »

Tags: ,
Posted in SAS | Comments Off on Show percentages for bar charts with PROC SGPLOT

Visualizing congressional representation by state and time

September 19, 2012
By

With the US presidential election looming, all eyes are on the Electoral College. In the presidential election, each state gets as many votes in the Electoral College as it has representatives in both congressional houses. (The District of Columbia also gets three electors.) Because every state has two senators, it
Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualizing congressional representation by state and time

Visualizing US commute times and congestion

September 10, 2012
By

Robert Allison posted a map that shows the average commute times for major US cities, along with the proportion of the commute that is attributed to traffic jams and other congestion. The data are from a CEOs for Cities report (Driven Apart, 2010, p. 45). Robert use SAS/GRAPH software to
Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualizing US commute times and congestion

What is the difference between categories and groups in PROC SGPLOT?

August 22, 2012
By

The other day I was using PROC SGPLOT to create a box plot and I ran a program that was similar to the following: proc sgplot data=sashelp.cars; title "Box Plot: Category = Origin"; vbox Horsepower / category=origin; run; An hour or so later I had a need for another box
Read more »

Tags: , ,
Posted in SAS | Comments Off on What is the difference between categories and groups in PROC SGPLOT?

Change a plot title by using the ODS Graphics Editor

August 6, 2012
By

A comment to last week's article on "How to get data values out of ODS graphics" indicated that the technique would be useful for changing the title on an ODS graph "without messing around with GTL." You can certainly use the technique for that purpose, but if you want to
Read more »

Tags: , ,
Posted in SAS | Comments Off on Change a plot title by using the ODS Graphics Editor

How to get data values out of ODS graphics

August 1, 2012
By

Many SAS procedures can produce ODS statistical graphics as naturally as they produce tables. Did you know that it is possible to obtain the numbers underlying an ODS statistical graph? This post shows how. Suppose that a SAS procedure creates a graph that displays a curve and that you want
Read more »

Tags: , , ,
Posted in SAS | Comments Off on How to get data values out of ODS graphics

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.