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

Captain9

10 Posts

Posted - 08/01/2018 :  03:31:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to draw independent variable on X-axis, just like "rug"


Edited by - Captain9 on 08/01/2018 03:33:46 AM

Hideo Fujii

USA
1582 Posts

Posted - 08/01/2018 :  11:21:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Captain9,

You can draw the rug plot part as "drop lines" from the line plot with your raw data as x, and a constant,
say 1 as Y.Origin has 1D kernel density function, ksdensity(x,dataset, w), so you can also generate the
density plot part. (https://www.originlab.com/doc/LabTalk/ref/ksdensity-func)

So, you can arrange the worksheet as in the screenshot below:



Here, column C is generated equi-spaced X positions, columns (A,B) are for rug plot, and columns
(C,D) are for line plot. Once you can set up this worksheet, you can simply plot them as a 2-panel
graph by "Plot: Multi-Panel: Vertical 2-Panel" menu. You can turn on the Drop Line option in Layer1,
and customize others.

Hope this helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 08/01/2018 11:47:04 AM
Go to Top of Page

Captain9

10 Posts

Posted - 08/01/2018 :  9:30:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks
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