This is an alternative plot to hist or plot density. Instead of binning or smoothing each item is drawn around its position +- diff. These are then stacked vertically. A rounding option is built in to give a cleaner building block look.
1 2 3 |
dta |
The data |
diff |
The width of each item to be plotted in |
rnd |
a number to round all values to |
xaxs, yaxs, xlim, ylim, ylab |
Standard plot options |
col |
the fill colour |
border |
the border colour |
add |
TRUE/FALSE add to an existing plot or not |
... |
other values passed to the polygon function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.