nntsplot {CircNNTSR}R Documentation

Plots the NNTS density

Description

Plots the NNTS density

Usage

nntsplot(cpars = 1/sqrt(2 * pi), M = 0, ...)

Arguments

cpars

Vector of complex numbers of dimension M+1. The first element is a real and positive number. The sum of the SQUARED moduli of the c parameters must be equal to 1/(2*pi).

M

Number of components in the NNTS

...

Arguments passed to the function curve

Examples

data(Turtles_radians)
#Empirical analysis of data
Turtles_hist<-hist(Turtles_radians,breaks=10,freq=FALSE)
#Estimation of the NNTS density with 3 componentes for data
est<-nntsmanifoldnewtonestimation(Turtles_radians,3,iter=200)
est
#plot the histogram
plot(Turtles_hist, freq=FALSE)
#add the estimated density to the histogram
nntsplot(est$cestimates[,2],3,add= TRUE)

[Package CircNNTSR version 2.3 Index]