start_circle: Generate circle as initial curve

Description Usage Arguments Examples

View source: R/start_circle.R

Description

The starting circle is defined in the first two dimensions, and has zero values in all other dimensions.

Usage

1

Arguments

x

The data for which to generate the initial circle

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
x <- cbind(
  rnorm(100, 1, .2),
  rnorm(100, -5, .2),
  runif(100, 1.9, 2.1),
  runif(100, 2.9, 3.1)
)
circ <- start_circle(x)
plot(x)
lines(circ)

## End(Not run)

dynverse/princurve documentation built on Jan. 20, 2021, 11:10 a.m.