Tag: Scatter Plot

Data Visualization
Sanjay Matange 0
Grouped Timeline

Recently, a user posed a question on how to plot stacked frequencies on a time axis.  The data included frequencies of different viruses by week.  The data is modified to preserve confidentiality and is shown below. The user's first instinct was to use a bar chart with stacked groups.  This works for automatically computing frequencies

Data Visualization
Sanjay Matange 0
A Better AE Timeline

Back in February, I posted an article on creating Adverse Event Timeline Graph.  In the SAS 9.2 version (first one), one item that was less than ideal was the way to position the AE names to the left of the event.  The AE names are displayed using the scatter plot statement

Data Visualization
Sanjay Matange 0
Forest Plot with Subgroups

During SAS Global Forum 2012, I had conversations with many SAS users who wanted to create Forest Plots.  However, there was one new twist.  The study names were subgrouped by categories like 'Age', 'Sex', etc., with multiple entries under each subgroup.  The name of each study within the subgrouped was indented

Data Visualization
Sanjay Matange 0
Non-breaking space

Forest plots come in many flavors.   An example of a Forest plot using GTL is available on the SAS support web site.  Simple forest plots can also be created using SGPLOT procedure by using the SCATTER statement with MARKERCHAR to display data aligned with the plot by study names. One issue

Data Visualization
Sanjay Matange 0
Extended Bands

In the Clinical Research domain, there is often the need to display lab values by treatment or test and it is often useful to view this data along with reference lines showing the normal ranges.  The obvious way is to use reference lines to denote the normal ranges. SGPLOT Code: proc sgplot data=band; scatter x=x y=y

Data Visualization
Sanjay Matange 0
Butterfly plots

When comparing results by category and group,  putting the items to be compared close together usually leads to a graph that is easier to decode.  Take the case of the data (simulated) shown below. Here we have population by age group and sex.  To compare the population by sex, it is

Data Visualization
Sanjay Matange 0
Spark lines made easy

Spark lines, made popular by Edward Tufte, provide a way to visualize trends in a concise space, often inline with the rest of the narrative or data. Previously, I posted an article on Spark Plots in which I created different plot types, some of which included multiple graphs and data in each row.  For such

Data Visualization
Sanjay Matange 0
LFT Panels

CTSPedia.org is a website of Knowledge Base for Clinical and Translational Research.  On this site you can find sample graphs for statistical analysis of safety data for Clinical Research.  Graphs included in this resource have been submitted by contributors, and include a graph for Liver Function for different tests by treatment.

Data Visualization
Sanjay Matange 0
Broken Y-Axis with SAS 9.2

In the previous post on Broken Y-Axis, I reviewed different ways to display data as a Bar Chart, where the response values for some categories are many orders of magnitude larger than the other values.  These tall bars force  the display of other values to be squeezed down thus making it harder to compare

Data Visualization
Sanjay Matange 0
Adding a spark to your data

When viewing time series data, often we only want to see the trend in the data over time and we are not so concerned about the actual data values.  With multiple time series plots, forecasting software can find clusters to help us view series with similar trends. Recently I saw a graph showing the trend of unemployment