Posts Tagged ‘ Statistical Graphics ’

How much do New Yorkers tip taxi drivers?

May 2, 2016
By
How much do New Yorkers tip taxi drivers?

When I read Robert Allison's article about the cost of a taxi ride in New York City, I was struck by the scatter plot (shown at right; click to enlarge) that plots the tip amount against the total bill for 12 million taxi rides. The graph clearly reveals diagonal and

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How much do New Yorkers tip taxi drivers?

Set attributes of markers in PROC SGPLOT by using ODS style elements

April 11, 2016
By
Set attributes of markers in PROC SGPLOT by using ODS style elements

The SG procedures in SAS use aesthetically pleasing default colors, shapes, and styles, but sometimes it is necessary to override the default attributes. The MARKERATTRS= option enables you to override the default colors, symbols, and sizes of markers in scatter plots and other graphs. Similarly, the LINEATTRS= option enables you

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Set attributes of markers in PROC SGPLOT by using ODS style elements

Comparative histograms: Panel and overlay histograms in SAS

March 9, 2016
By
Comparative histograms: Panel and  overlay histograms in SAS

You can use histograms to visualize the distribution of data. A comparative histogram enables you to compare two or more distributions, which usually represent subpopulations in the data. Common subpopulations include males versus females or a control group versus an experimental group. There are two common ways to construct a

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Comparative histograms: Panel and overlay histograms in SAS

A simple trick to include (and order!) all categories in SGPLOT legends

February 17, 2016
By
A simple trick to include (and order!) all categories in SGPLOT legends

Last week Sanjay Matange wrote about a new SAS 9.4m3 option that enables you to show all categories in a graph legend, even when the data do not contain all the categories. Sanjay's example was a chart that showed medical conditions classified according to the scale "Mild," "Moderate," and "Severe."

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on A simple trick to include (and order!) all categories in SGPLOT legends

Banking to 45 degrees: Aspect ratios for time series plots

January 20, 2016
By
Banking to 45 degrees: Aspect ratios for time series plots

In SAS, the aspect ratio of a graph is the physical height of the graph divided by the physical width. Recently I demonstrated how to set the aspect ratio of graphs in SAS by using the ASPECT= option in PROC SGPLOT or by using the OVERLAYEQUATED statement in the Graph

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Banking to 45 degrees: Aspect ratios for time series plots

Twelve posts from 2015 that deserve a second look

January 11, 2016
By

I began 2016 by compiling a list of popular articles from my blog in 2015. This "People's Choice" list contains many interesting articles, but some of my personal favorites did not make the list. Today I present the "Editor's Choice" list of articles that deserve a second look. I've grouped

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Twelve posts from 2015 that deserve a second look

Overlay categories on a histogram

December 9, 2015
By
Overlay categories on a histogram

Recently Sanjay Matange blogged about how to color the bars of a histogram according to a gradient color ramp. Using the fact that bar charts and histograms look similar, he showed how to use PROC SGPLOT in SAS to plot a bar chart in which each bar is colored according

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Overlay categories on a histogram

Size matters: Preserving the aspect ratio of the data in ODS graphics

November 30, 2015
By
Size matters: Preserving the aspect ratio of the data in ODS graphics

When creating a statistical graphic such as a line plot or a scatter plot, it is sometimes important to preserve the aspect ratio of the data. For example, if the range of the X and Y variables are equal, it can be useful to display a graph in which the

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Size matters: Preserving the aspect ratio of the data in 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.