zplot | R Documentation |
Plots z above xy plane as 3D mountain or 2D contourlines
zplot(x, y, z, DrawTopView = TRUE, NrOfContourLines = 20,
TwoDplotter = "native", xlim, ylim)
x |
Vector of x-coordinates of the data. If y and z are missing: Matrix containing 3 rows, one for each coordinate |
y |
Vector of y-coordinates of the data. |
z |
Vector of z-coordinates of the data. |
DrawTopView |
Optional: Boolean, if true plot contours otherwise a 3D plot. Default: True |
NrOfContourLines |
Optional: Numeric. Only used when DrawTopView == True. Number of lines to be drawn in 2D contour plots. Default: 20 |
TwoDplotter |
Optional: String indicating which backend to use for plotting. Possible Values: 'ggplot', 'native', 'plotly' |
xlim |
[1:2] scalar vector setting the limits of x-axis |
ylim |
[1:2] scalar vector setting the limits of y-axis |
If the plotting backend does support it, this will return a handle for the generated plot.
Felix pape
## Not run:
data("Lsun3D")
Data=Lsun3D$Data
if(exists("zplot", where = asNamespace("DataVisualizations")))
DataVisualizations::zplot(Data[,1],Data[,2],Data[,3])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.