Description Usage Arguments Details See Also Examples
Given a list of objects, extracts an x-axis and a y-axis element from each object, joins them together in a matrix, and passes them to matplot.
1 |
list |
A list of objects, each with elements named 'x' and 'y'. |
x |
The name of the element to use for the X axis; defaults to "x". |
y |
The name of the element to use for the Y axis; defaults to "y". |
... |
Arguments to |
This is a convenience function used primarily for plotting
multiple PDFs (from, e.g., stats::density
or
KernSmooth::bkde
) on the same graph.
Each object must be a list with elements named "x" and "y", and all x and y elements must be the same length. (The elements are merged into matrices via calls to sapply.) These restrictions make the function not terribly useful in the general case, but it works fine on PDFs.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.