rug plots

バージョン (2.61 KB) 作成者: Rob Campbell
Creates a so-called "rug" plot similar to those produced by the free stats package, R.
ダウンロード: 1.2K
更新 2010/6/18


A rug plot is a compact way of illustrating the marginal distributions of a variable along x and y. Positions of the data points along x and y are denoted by tick marks, reminiscent of the tassels on a rug.

Known Issues:
Rug marks are overlaid onto the same axis as the original data. Changing the axis dimensions after calling rug will therefore cause the tick marks to become disassociated from the axes.

I haven't tested this function extensively so let me know if you find any problems.


Rob Campbell (2024). rug plots (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010a
Windows macOS Linux
Help Center および MATLAB AnswersScatter Plots についてさらに検索

ヒントを得たファイル: marginalscatter

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート

minor updates to summary

Tidy and correct comments. Check that tickScaleFactor is between 0 and 1.

Allow tick mark length to be defined at the command line.