A convenience function to make x-y plots
1 2 3 4 5 |
x |
- vector of x coordinates |
y |
- vector of y coordinates |
xlab |
- x axis title |
ylab |
- y axis title |
xlim |
- x axis limits |
ylim |
- y axis limits |
clr |
- line/points color |
pts.plot |
- flag (T/F) to plot points |
pts.type |
- type of point to plot (pch from 'par') |
pts.siz |
- point size |
line.plot |
- flag (T/F) to plot line |
line.wd |
- line width (lwd from par) |
line.type |
- type of line (lty from 'par') |
overplot |
- flag (T/F) to plot the data on an existing plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.