Learn R Programming

DataVisualizations (version 1.3.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

[1:2] scalar vector setting the limits of x-axis

ylim

[1:2] scalar vector setting the limits of y-axis

Author

Felix pape

Examples

Run this code

if (FALSE) {
data("Lsun3D")
Data=Lsun3D$Data
if(exists("zplot", where = asNamespace("DataVisualizations")))
      DataVisualizations::zplot(Data[,1],Data[,2],Data[,3])
}

Run the code above in your browser using DataLab