Learn R Programming

Arothron (version 2.0.5)

dec.curve: dec.curve

Description

This function computes the order of points on a open 3D curve and finds intermediate points

Usage

dec.curve(mat_input, mag, plot = TRUE)

Value

matt numeric: a kx3 matrix with points coordinates

Arguments

mat_input

numeric: a kx3 matrix

mag

numeric: how many times will be divided by the number of initial points

plot

logical: if TRUE will be plotted the starting and final point matrices

Author

Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo Piras, Pasquale Raia, Alessio Veneziano

Examples

Run this code
if (FALSE) {
## Create and plot a 3D curve
require(compositions)
require(rgl)
curve_3D<-cbind(1:10,seq(1,5,length=10),rnorm(10,sd = 0.2))
plot3D(curve_3D,bbox=FALSE)
close3d()
## Create and plot the new 3D curve (with intermediate points)
dec_curve_3D<-dec.curve(curve_3D, 2, plot = TRUE)
}

Run the code above in your browser using DataLab