Data visualization with SAS programming

Side by Side Histogram

Reply
Occasional Contributor Tz
Occasional Contributor
Posts: 5

Side by Side Histogram

Dear all.

I am trying to create a Side-by-Side histogram, like below.

I can get SAS to ,draw histograms in panels or overlayed but can find no option (something like groupcluster) for a histogram with automatic binning.

Thanks

SAS Super FREQ
Posts: 1,044

Re: Side by Side Histogram

I could not see your example.  Since Histograms display densities over a continuous range, you cannot have side by side bins like a Bar Chart.  However, you can display these as overlays.  See this blog article on this topic:

Here is one example:

ComparativeHist.png

Occasional Contributor Tz
Occasional Contributor
Posts: 5

Re: Side by Side Histogram

Hi Sanjay, I'ts nice to hear from you again (You helped me with a log-scaled graph where the original value was a fraction, but the log scale in SAS cannot handle negative values),

The hisrtogram I'm looking for is standard in SPSS.

Thanks

SAS Super FREQ
Posts: 1,044

Re: Side by Side Histogram

Please add a picture of what you want, and the data.  Which release of SAS are you using?

Occasional Contributor Tz
Occasional Contributor
Posts: 5

Re: Side by Side Histogram

Sorry Sanjay.

I was misinformed by the researcher.

The examples he provided were run in SPSS after coding the bin values.

Thanks for you're patience

Post a Question
Discussion Stats
  • 4 replies
  • 506 views
  • 0 likes
  • 2 in conversation