Posts Tagged ‘ Statistical Graphics ’

How to align the Y and Y2 axes in PROC SGPLOT

January 14, 2019
By
How to align the Y and Y2 axes in PROC SGPLOT

When you overlay two series in PROC SGPLOT, you can either plot both series on the same axis or you can assign one series to the main axis (Y) and another to a secondary axis (Y2). If you use the Y and Y2 axes, they are scaled independently by default,

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to align the Y and Y2 axes in PROC SGPLOT

10 posts from 2018 that deserve a second look

January 9, 2019
By
10 posts from 2018 that deserve a second look

Numbers don't lie, but sometimes they don't reveal the full story. Last week I wrote about the most popular articles from The DO Loop in 2018. The popular articles are inevitably about elementary topics in SAS programming or statistics because those topics have broad appeal. However, I also write about

The post Read more »

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

Top posts from The DO Loop in 2018

January 2, 2019
By
Top posts from The DO Loop in 2018

Last year, I wrote more than 100 posts for The DO Loop blog. Of these, the most popular articles were about data visualization, SAS programming tips, and statistical data analysis. Here are the most popular articles from 2018 in each category. Data Visualization Visualize repetition in song lyrics: In one

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Top posts from The DO Loop in 2018

Visualize a mixed model that has repeated measures or random coefficients

December 19, 2018
By
Visualize a mixed model that has repeated measures or random coefficients

I regularly see questions on a SAS discussion forum about how to visualize the predicted values for a mixed model that has at least one continuous variable, a categorical variable, and possibly an interaction term. SAS procedures such as GLM, GENMOD, and LOGISTIC can automatically produce plots of the predicted

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualize a mixed model that has repeated measures or random coefficients

5 tips for customizing legends in PROC SGPLOT in SAS

December 3, 2018
By
5 tips for customizing legends in PROC SGPLOT in SAS

When a graph includes several markers or line styles, it is often useful to create a legend that explains the relationship between the data and the symbols, color, and line styles in the graph. The SGPLOT procedure does a good job of automatically creating and placing a legend for most

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on 5 tips for customizing legends in PROC SGPLOT in SAS

A funnel plot for immunization rates

November 26, 2018
By
A funnel plot for immunization rates

Last week my colleague, Robert Allison, visualized data regarding immunization rates for kindergarten classes in North Carolina. One of his graphs was a scatter plot that displayed the proportion of unimmunized students versus the size of the class for 1,885 kindergarten classes in NC. This scatter plot is the basis

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on A funnel plot for immunization rates

Define custom color ramps by using the RANGEATTRMAP statement in GTL

November 12, 2018
By
Define custom color ramps by using the RANGEATTRMAP statement in GTL

The SGPLOT procedure enables you to use the value of a response variable to color markers or areas in a graph. For example, you can use the COLORRESPONSE= option to define a variable whose values will be used to color markers in a scatter plot or cells in a heat

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Define custom color ramps by using the RANGEATTRMAP statement in GTL

Visualize the feasible region for a constrained optimization

November 7, 2018
By
Visualize the feasible region for a constrained optimization

When solving optimization problems, it is harder to specify a constrained optimization than an unconstrained one. A constrained optimization requires that you specify multiple constraints. One little typo or a missing minus sign can result in an infeasible problem or a solution that is unrelated to the true problem. This

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualize the feasible region for a constrained optimization

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.