surface.dcs {DCSmooth}R Documentation

3D Surface Plot of "dcs"-object or numeric matrix

Description

3D Surface Plot of "dcs"-object or numeric matrix

Usage

surface.dcs(Y, trim = c(0, 0), plot_choice = "choice", ...)

Arguments

Y

an object of class "dcs" or a numeric matrix that contains the values to be plotted.

trim

a numeric vector with two values specifying the percentage of trimming applied to the boundaries of the surface to plot. Useful for derivative estimation.

plot_choice

override the prompt to specify a plot, can be c(1, 2, 3).

...

optional arguments passed to the plot function.

Value

dcs.3d returns an object of class "plotly" and "htmlwidget".

Details

surface.dcs uses the plotly device to plot the 3D surface of the given "dcs"-object or matrix. If a "dcs"-object is passed to the function, it can be chosen between plots of the original data (1), smoothed surface (2) and residuals (3).

See Also

plot.dcs

Examples

# See vignette("DCSmooth") for examples and explanation

smth <-  dcs(y.norm1 + rnorm(101^2))
surface.dcs(smth, trim = c(0.05, 0.05), plot_choice = 2)


[Package DCSmooth version 1.1.2 Index]