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
|
|
|