Search Results: sgplot (958)

Rick Wicklin 0
Creating a periodic smoother

In yesterday's post, I discussed a "quick and dirty" method to smooth periodic data. However, after I smoothed the data I remarked that the smoother itself was not exactly periodic. At the end points of the periodic interval, the smoother did not have equal slopes and the method does not

Rick Wicklin 0
Smoothers for periodic data

Over at the SAS and R blog, Ken Kleinman discussed using polar coordinates to plot time series data for multiple years. The time series plot was reproduced in SAS by my colleague Robert Allison. The idea of plotting periodic data on a circle is not new. In fact it goes

Data Visualization
Sanjay Matange 0
Bar-Line graph

A user recently posted a question in the SAS communities forum about  how to best display two measures by one classifier using a Bar-Line graph, where the scale of the two measures is vastly different.  This got me thinking about various different ways to represent such data.  Here are some of my thoughts,

Data Visualization
Sanjay Matange 0
Cluster groups

The topic of cluster groups comes up often.  By cluster group I am referring to the feature in bar charts where the group values are displayed side by side. With SAS 9.3, SG Procedures support stack or cluster grouping for Bar Charts and overlay or cluster grouping for all other

Data Visualization
Sanjay Matange 0
Graphs with class

When the data is classified by multiple class variables, you can certainly create graphs using BY variables.  This results in separate graphs, one for each level of the BY variable crossings.  Each graph is scaled by its own data subset, and comparisons across BY levels is harder. When comparisons need to be

Rick Wicklin 0
Quantiles of discrete distributions

I work with continuous distributions more often than with discrete distributions. Consequently, I am used to thinking of the quantile function as being an inverse cumulative distribution function (CDF). (These functions are described in my article, "Four essential functions for statistical programmers.") For discrete distributions, they are not. To quote

Rick Wicklin 0
Testing data for multivariate normality

I've blogged several times about multivariate normality, including how to generate random values from a multivariate normal distribution. But given a set of multivariate data, how can you determine if it is likely to have come from a multivariate normal distribution? The answer, of course, is to run a goodness-of-fit

Data Visualization
Dan Heath 0
Roses are red, violets are blue...

This classic start to a romantic poem assumes that the correct colors are always assigned to the correct flowers; but, for those who create graphs for reports, consistent color assignment can be more of a challenge than an assumption. This challenge is particularly true for the display of group values.

Data Visualization
Sanjay Matange 0
Comparative density plots

Recently a user posted a question on the SAS/GRAPH and ODS Graphics Communities page on how to plot the normal density curves for two classification levels in the same graph. We have often seen examples of a  distribution plot of one variable using a histogram with normal and kernel density curves.  Here is a simple example: Code Snippet:

Data Visualization
Dan Heath 0
A (tool)tip for band plots

Recently, I had a discussion with a user concerning the volume of imagemap data generated for an interactive,  web-based visual contain a large number of graphs. The large amount of imagemap data was causing problems with the current version of their web browser. The graphs consisted of either bar charts

Data Visualization
Sanjay Matange 0
Nested graphs

Here are a couple of bar charts showing the city mileage of cars by Type and Origin using the SGPLOT procedure from the sashelp.cars dataset. title 'Vehicle Mileage by Type'; proc sgplot data=cars; format mpg_city 4.1; vbar type / response=mpg_city stat=mean datalabel; xaxis display=(nolabel); run; title 'Counts by Country'; proc sgplot

Rick Wicklin 0
Explaining coincidence

I was on vacation when a family member sidled up to me. "Rick, you're a statistician..." he began. I knew I was in trouble. He proceeded to tell me the story of Joseph "Newsboy" Moriarty, a New Jersey mobster who rose to prominence and became known as the bookie who

Data Visualization
Sanjay Matange 0
Timeseries plots with regimes

Recently we discussed the features of the Shiller Graph, showing long term housing values in the USA.  To understand the features necesary in the SGPLOT procedure to create such graph easily, it was useful to see how far we can go using GTL as released with SAS 9.2(M3). I got the data Shiller Housing index data

Data Visualization
Dan Heath 0
They go where you put them

An issue that SAS/GRAPH users have wrestled with in the past has been how to put tick marks at irregular intervals on their axes. In PROC GPLOT, if you specify irregular intervals using the ORDER option on the AXIS statement, the procedure’s axis kicks into a “discrete” mode, where the

Data Visualization
Sanjay Matange 0
The more the merrier

Often it is useful to view multiple responses by a common independent variable all in the same plot.  SGPLOT procedure and GTL support the ability to view two responses, one each on the Y and Y2 axes by one independent variable (X) in one graph.  Yes, you can also have X

Rick Wicklin 0
Overlay density estimates on a plot

A recent question on a SAS Discussion Forum was "how can you overlay multiple kernel density estimates on a single plot?" There are three ways to do this, depending on your goals and objectives. Overlay different estimates of the same variable Sometimes you have a single variable and want to

Data Visualization
Sanjay Matange 0
Custom confidence intervals

Recently a user posted a question on the SAS/GRAPH and ODS Graphics Forum about drawing a plot with custom confidence intervals .  The user has a simple data set with category, response (mean) and custom lower and upper confidence intervals.  The data looks like this: Robert Allison provided the code (proc gplot +

Data Visualization
Sanjay Matange 0
In good company

A recent post on the SAS website shows the SAS Annual Revenue History.  It would be interesting to see how we could create such a graph using SG procedures, and how we could add more information and interest in the presentation.  So, I started with the basic informaiton on the annual revenues provided,

Rick Wicklin 0
Simulation of Buffon's needle in SAS

Buffon's needle experiment for estimating π is a classical example of using an experiment (or a simulation) to estimate a probability. This example is presented in many books on statistical simulation and is famous enough that Brian Ripley in his book Stochastic Simulation states that the problem is "well known

Data Visualization
Sanjay Matange 0
Simply useful

Let us ring in the new year with something simple and useful. A recent question by a user over the holidays motivated this article on what is likely a commonly used graph.  We want to compare the preformance of two categories along with a third measure.  This could be something like "How

1 28 29 30 31 32