Learn R Programming

DataVisualizations (version 1.2.3)

zplot: Plotting for 3 dimensional data

Description

Plots z above xy plane as 3D mountain or 2D contourlines

Usage

zplot(x, y, z, DrawTopView = TRUE, NrOfContourLines = 20,

TwoDplotter = "native", xlim, ylim)

Value

If the plotting backend does support it, this will return a handle for the generated plot.

Arguments

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

ylim

Author

Felix pape

Examples

Run this code

# \dontshow{
data("Lsun3D")
Data=Lsun3D$Data
zplot(Data[,1],Data[,2],Data[,3])
# }

Run the code above in your browser using DataLab