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 »

Enhancing a congressional district map – one layer at a time

November 8, 2018
By

With the recent midterm elections here in the US, I frequently saw congressional district maps popping up in the news. And being a GraphGuy, I wanted to fully understand these maps, to see if I might could improve them. If you're interested in congress...
Read more »

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 »

Creating a custom ‘I Voted’ sticker

November 6, 2018
By

With today being an election day here in the US, I see a lot of people wearing the 'I Voted' sticker. This got me wondering if I could create my own sticker ... using SAS software and simple graphics primitives. :-) So I started by using Proc Gslide to create

The post Read more »

Reporting on accelerometer data with SAS Visual Analytics

November 6, 2018
By
Reporting on accelerometer data with SAS Visual Analytics

I've collected accelerometer data with a third-party app. I've used some SAS tricks to import all of my data readings in a single step. Now I'm ready to create a report of these data in SAS Visual Analytics.

The post Reporting on accelerometer data with SAS Visual Analytics appeared first on...
Read more »

Fit the Pareto distribution in SAS

November 5, 2018
By
Fit the Pareto distribution in SAS

Will the real Pareto distribution please stand up? SAS supports three different distributions that are named "Pareto." The Wikipedia page for the Pareto distribution lists five different "Pareto" distributions, including the three that SAS supports. This article shows how to fit the two-parameter Pareto distribution in SAS and discusses the

The post Read more »

Visualizing cities as constellations in the night sky

November 2, 2018
By

Who says technical people can't have fun!?! Similar to Throwback Thursday / #TBT (when people post one of their old/nostalgic photos on social media), I like the tradition of Fun Friday when I use a fun data topic to test our software - a test can be j...
Read more »

Tracking Trump’s approval rating

October 31, 2018
By

President Donald Trump - people seem to either love him or hate him. Which makes for an interesting data-analysis topic ... tracking Trump's approval rating. Follow along as I explore some data! I'll start with what I consider the 'best' approval-rating graph I've found so far. Here's a screen-capture of

The post Read more »

A trick to plot groups in PROC SGPLOT

October 31, 2018
By
A trick to plot groups in PROC SGPLOT

A useful feature in PROC SGPLOT is the ability to easily visualize subgroups of data. Most statements in the SGPLOT procedure support a GROUP= option that enables you to overlay plots of subgroups. When you use the GROUP= option, observations are assigned attributes (colors, line patterns, symbols, ...) that indicate

The post Read more »

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.