The function persp is the base graphics function for creating wireframe surface plots. adopted from http://www.r-bloggers.com/creating-surface-plots/ The persp function requires a list of x and y values covering the grid of vertical values which is specified as the z variable. The heights for the display are specified as a table of values which we saved previously as the object z during the calculations when the local trend surface model was fitted to the data.
1 2 3 4 5 |
x |
|
y |
a boolean variable deciding if the box should be horizontal |
z |
e if an outline |
border |
border of lines |
phi |
|
theta |
The function arguments phi and theta are used to rotate the viewing angle of the surface |
box |
should hte bounding box for the surface be displayed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.