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
 All Forums
 Origin Forum
 Origin Forum
 how to get rug plot

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Captain9 Posted - 08/01/2018 : 03:31:56 AM
How to draw independent variable on X-axis, just like "rug"

2   L A T E S T    R E P L I E S    (Newest First)
Captain9 Posted - 08/01/2018 : 9:30:12 PM
thanks
Hideo Fujii Posted - 08/01/2018 : 11:21:47 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000