Description Usage Arguments Value Examples
View source: R/LandscapePlot.R
This function plots a three-dimensional landscape of measured traits. The peak heights are relative with respect to the input data. The width of each peak is controlled by the argument sigma and has only an aesthetic purpose. The 3D image is generated using the drawScene
and surfaceTriangles
.
1 |
Data |
A (non-empty) numeric matrix with trait values |
Groups |
A (non-empty)factor vector indicating the group membership of each row in Data. If there is only a single group present in Data then Groups=NULL (default). |
PDF |
Logical controlling whether to output the results as a .pdf or a .jpeg. The default (PDF=FALSE) will produce a .jpeg. The file size for .pdf output can be large. |
LocPlot |
Logical controlling whether to output a .pdf naming the peaks according to the columns they represent. The defaul is FALSE. |
control |
An optional numeric vector setting the control parameters for persp. control[1] = theta, control[2] = r, control[3] = phi |
a list of plots stored as grid plots (or.pdf if PDF=TRUE) file for each column in data.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.