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
 Boxplots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

yogeshgodwal

USA
3 Posts

Posted - 11/07/2018 :  2:09:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:Windows
How can I do boxplots when my x column is categorical?

Hideo Fujii

USA
1582 Posts

Posted - 11/07/2018 :  4:25:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi yogeshgodwal,

I assume that your actual data are in Y column, and the categorical values in X column are for
grouping - each group corresponds to the individual box. If this is your case, you can try separate
each group as a dataset by "unstacking".

1) Unstack the Y column to multiple columns by "Worksheet: Unstack Columns" menu. (If your X
has N unique categories, it produces N columns with categorical values in "Comments" header row.)
2) Highlight all generated columns, and make a Box chart.
3) Double-click an X tick label to show the Axis dialog, select "Tick Labels" tab, and "Display" subtab,
then set Type to "Column Name or Label", and Display to "Comments" to show the category labels
at the tick labels.

Hope this is your case. If my assumption about your data organization, you can further explain it
(with a screenshot, if possible).

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 11/07/2018 4:27:11 PM
Go to Top of Page

yogeshgodwal

USA
3 Posts

Posted - 11/07/2018 :  5:26:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Hideo,
I do not have the data grouped. How do i plot it if the data is not grouped?
quote:
Originally posted by Hideo Fujii

Hi yogeshgodwal,

I assume that your actual data are in Y column, and the categorical values in X column are for
grouping - each group corresponds to the individual box. If this is your case, you can try separate
each group as a dataset by "unstacking".

1) Unstack the Y column to multiple columns by "Worksheet: Unstack Columns" menu. (If your X
has N unique categories, it produces N columns with categorical values in "Comments" header row.)
2) Highlight all generated columns, and make a Box chart.
3) Double-click an X tick label to show the Axis dialog, select "Tick Labels" tab, and "Display" subtab,
then set Type to "Column Name or Label", and Display to "Comments" to show the category labels
at the tick labels.

Hope this is your case. If my assumption about your data organization, you can further explain it
(with a screenshot, if possible).

--Hideo Fujii
OriginLab

Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/07/2018 :  5:31:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi yogeshgodwal,

So, do you mean that your data itself is categorical? Box chart works to show the distribution of the
given dataset. So, if it is the case, you cannot make a box chart in principle. May be you can post
the screenshot of your data.

--Hideo Fujii
OriginLab
Go to Top of Page

yogeshgodwal

USA
3 Posts

Posted - 11/07/2018 :  5:58:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is the screen shot



quote:
Originally posted by Hideo Fujii

Hi yogeshgodwal,

So, do you mean that your data itself is categorical? Box chart works to show the distribution of the
given dataset. So, if it is the case, you cannot make a box chart in principle. May be you can post
the screenshot of your data.

--Hideo Fujii
OriginLab

Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 11/08/2018 :  09:33:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi yogeshgodwal,

> Here is the screen shot

Sorry, I cannot see your image in your post. Did you do the following 3 steps?:
1) press "Insert Image" (Yellow Scenery) button.
2) Upload your image file.
3) Press link to insert the image link in your post text.


--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 11/08/2018 10:35:20 AM
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