Description Usage Arguments Note Examples
This function adds grids on an existing plot created using the package scatterplot3d
1 2 3 |
x,y,z |
numeric vectors specifying the x, y, z coordinates of points. x can be a matrix or a data frame containing 3 columns corresponding to the x, y and z coordinates. In this case the arguments y and z are optional |
grid |
specifies the facet(s) of the plot on which grids should be drawn. Possible values are the combination of "xy", "xz" or "yz". Example: grid = c("xy", "yz"). The default value is TRUE to add grids only on xy facet. |
col.grid,lty.grid |
color and line type to be used for grids |
lab |
a numerical vector of the form c(x, y, len). The values of x and y give the (approximate) number of tickmarks on the x and y axes. |
lab.z |
the same as lab, but for z axis |
scale.y |
scale of y axis related to x- and z axis |
angle |
angle between x and y axis |
xlim,ylim,zlim |
the x, y and z limits (min, max) of the plot. |
Users who want to extend an existing scatterplot3d graphic with the function s3d_addgrids, should consider to set the arguments scale.y, angle, ..., to the value used in scatterplot3d.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.