The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Generate a histogram with 2 parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

org_Ingo

Germany
Posts

Posted - 02/02/2010 :  12:03:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.: 8.0 SR4
Operating System: Win Vista

Hi all,

is it possible to generate a histogram with 2 parameters and plot it as stack columns? For instance: one parameter is time and second parameter is binary (ON or OFF). The histogram should plot columns for each bin. Each column hight should correspond to the number of events in a bin and each column should also give the number of events which were ON and OFF, i.e.
X Y1(ON) Y2(OFF)
0-10 2 1
10-20 3 2
20-30 1 3

Thanks in advance!
Ingo

easwar

USA
1964 Posts

Posted - 02/02/2010 :  12:55:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ingo,

So basically you want to perform frequency count using a 2nd grouping variable....the current frequency count tool does not support grouping, but you can do this with the 2D Frequency Count/Binning tool under Statistics->Descriptive Statistics menu. In the picture below the On/Off data was set up as 0 and 1 and then bin centers were used in the dialog to set centers to be 0 and 1 for the on/off. Then once you get the output sheet with counts you can make column plots from it.

Easwar
OriginLab

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000