## Tag: SGPLOT

0
A better 3D scatter plot macro

SAS SGPLOT already provides the necessary graphical elements for complex visualization. 3D or high-dimensional data can be easily visualized after being projected appropriately. With SAS' strong support for animation features, SAS users can create complicated 3D or high dimension visualizations quickly.

Data Visualization
0
The Power of Stacking

Amazing things can be created when you start with small pieces and stack them together. Just ask Bryan Berg. He is the current world record holder for the tallest house of cards. This same principle can be applied to the SGPLOT and SGPANEL procedures. You can take the individual plot

0
Solve "A Puzzle for Pirates" with SAS

This article introduces how to solve the pirate game with a recursive solving algorithm in SAS, and how to analyze and visualize the law behind the complex logic of the pirate game. If you join in a pirate game next time, you can know your destiny ahead of time to reap the benefits and avoid getting killed.

0
Enhancing a scatter plot

A scatter plot is my go-to graph! It's what I often start with to get a feel for the data ... and I often end up using just a scatter plot. But some scatter plots are better than others ... In this blog post, I create a scatter plot of

0
Which countries consume the most coal?

These days, many countries are moving away from coal, and towards natural gas, hydro, wind, and solar as ways to meet their electricity needs. I had heard that some countries still use a lot of coal (especially those countries with large coal deposits), and I was curious which countries use

0
Captain Kirk travels into space!

Recently, the news has been all abuzz about William Shatner traveling into space. This was a cool event because he's the oldest person who has traveled into space (at 90 years old) ... and he was also the iconic Captain Kirk from the original Star Trek television series. This got

Data Visualization
0
The Graph Guy is retiring!

The rumors are true - The Graph Guy is retiring! I've been working at SAS for about 30 years, and had lots of fun stretching the limits of SAS' graphing & mapping software over the years. But I've decided to retire while I'm still young enough to pursue a lot

0
Cary NC data - weather

Many cities have Open Data pages. But once you download the data, what can you do with it? This is my sixth in a series of blog posts where I download public data about Cary, NC, and demonstrate how you might analyze that type of data (for Cary, or any

0
Cary NC data - population

Many cities have Open Data pages. But once you download the data, what can you do with it? This is my fourth in a series of blog posts where I download public data about Cary, NC, and demonstrate how you might analyze that type of data (for Cary, or any

0
Cary NC data - streetlights

Many cities have Open Data pages. But once you download the data, what can you do with it? This is my third in a series of blog posts where I download several datasets from Cary, NC's open data page, and give you a few ideas to get you started on

0
Cary NC data - fire incidents

Many cities have Open Data pages. But once you download the data, what can you do with it? This is my second blog post where I download several datasets from Cary, NC's open data page, and and give you a few ideas to get you started on your own data

0
Cary NC data - car crashes

Many cities have Open Data pages. But once you download this data, what can you do with it? I'm going to download several datasets from Cary, NC's open data page, and try to give you a few ideas to get you started on your own data exploration! And what data

0
How long will your dog live?

How long do dogs live? ... That's a good/tough question. Some live longer than others, but what are the determining factors? Let's throw some data to this problem, and see if we can fetch some answers! But before we get started, how about a random picture to get you into

0

Having earned the Eagle Scout rank in Boy Scouts, I am of course very conservation-minded, and against polluting. I'm also an avid boat paddler and fisherman, and therefore I'm especially concerned about pollution in our rivers, lakes, and oceans. I even volunteered for a week to help survey coral reefs

0
SEVENTY48: Seventy miles, in 48 hours

I've got this buddy, Carter Johnson - he's a little bit crazy, but a lot of fun to follow... He holds/held several different long-distance paddling world records, and was one of the coaches for the group that paddled kayaks from Cuba to the US (see my blog post). A few

0
Improving a population pyramid animation (Sweden, 1860-2020)

You've probably seen a population pyramid, such as this one I showed in a previous blog post. But let's scrutinize population pyramids a bit deeper, with an eye on special features that can make them even more useful! I was inspired to give population trees a second look by this

0
Do IKEA directions cause you stress?

Have you ever brought home a piece of furniture-in-a-box, and felt undue stress while trying to make sense of the directions to assemble it? ... Apparently you're not alone! A recent analysis studied ~50,000 tweets about IKEA furniture, and determined whether the people posting the tweets were frustrated. They then

0
SAS graphs for R programmers - bar charts

This is another in my series of blog posts where I take a deep dive into converting customized R graphs into SAS graphs. Today we'll be working on bar charts ... And to give you a hint about what data I'll be using this time, here's a picture from a SAS

0
SAS graphs for R programmers - diverging bars

This is another in my series of blogs where I take a deep dive into converting a customized R graph into a SAS graph. Today I'm focusing on a diverging bar chart (where one bar segment is above the zero line, and the other is below). What type of data

0
SAS graphs for R programmers - needle plots

This is another in my series of blogs where I take a deep dive into converting a customized R graph into a SAS ODS Graphics graph. This time the example is a needle plot (that's essentially like a bar plot, with lots of tiny bars, plotted along a continuous xaxis).

0
SAS graphs for R programmers - overlay lines

In the past, Sanjay showed how to create several basic graphs using both R and SAS ODS Graphics code. I'm going to take a bit of a "deeper dive" and focus a series of blog posts on highly customized graphs. Hopefully the code for these customizations will provide you with

0
Mobile phone market share - stacked bar charts

I recently had a discussion with a friend, and we were wondering about Apple's market share. This led me to look into the actual data ... finding the online charts lacking, and then designing my own charts. Follow along if you're curious about the process of improving the charts, or

0
Do low mortgage rates bring you joy(plots)?

When it comes to plotting mortgage rate data, I often look to Len Kiefer for inspiration. He recently posted a retro-looking graph on twitter that caught my eye ... and of course I had to see if I could create something similar using SAS. For lack of a better term,

0
Early voting in North Carolina (2020 vs 2016)

Here in the United States, we have our general election (where we elect the president) every four years - and 2020 happens to be one of those election years. This time we seem to have a lot more people voting early. I can't tell you the reason they're voting early

0
Visualizing 3 waves of COVID-19 in the US

Now that we are many months into the COVID-19 pandemic, I've started going back and reexamining the data for lessons or trends (you might say hindsight is 20/20). This time, I want to explore how COVID-19 has been spreading around the US. I do this by using a graphical idea

1 2 3 6