## Tag: Histogram

Data Visualization
8
Getting Started with SGPLOT - Part 5 - Histograms

This is the 5th installment of the Getting Started series.  The audience is the user who is new to the SG Procedures.  Experienced users may also find some useful nuggets of information here. A histogram reveals features of the distribution of the analysis variable, such as its skewness and the peak which

Data Visualization
2
Scatter Plot with Stacked Histograms

Last week a user expressed the need to create a graph like the one shown on the right using SAS.   This seems eminently doable using GTL and I thought I would undertake making this graph using SAS 9.3. The source data required to create this graph is only the

Data Visualization
4
HeatMap with Numeric and Discrete Variables

Heat maps are a great way to visualize the bi-variate distribution of data.  Traditionally, a heat may may have two numeric variables, placed along the X and Y dimension. Each variable range is sub divided into equal size bins to create a rectangular grid of bins.  The number of observations

Data Visualization
7
Graphs are easy in SAS University Edition

By now you have heard all about the SAS(R) STUDIO software that provides access to the power of SAS analytics in a Web browser.  The SAS(R) University Edition is also available free for higher education teaching, learning and  research. This software includes ODS Graphics software for creating graphs.  You can

Data Visualization
9
R U Graphing with SAS?

In recent conversations with many SAS users at NESUG, SESUG and WUSS, a pattern emerges on the question of creating graphs with SAS or R.  Many SAS users are aware of the new graph features in SAS that create high quality graphs with minimum fuss.  But, many have not actually used

Data Visualization
8
Comparative Histograms

In reference to a previous article on Violin Plots, a reader asked about creating comparative mirrored histograms to compare propensity scores.  While I had my own understanding of "Mirrored Histograms", I also looked this up on the web.  Google showed many cases of two histograms back to back, either horizontally or vertically.

Data Visualization
4
Scatter plot matrix with a twist

The Scatter Plot Matrix statement supports a couple of different configurations.  The basic is the N x N panel of cells, with each cell showing scatter plots plot for a pair of variables at a time.  Here is an example of a 3 x 3 scatter plot matrix for the

Data Visualization
4
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
7
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