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

	set.seed(200)
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 estimated density
nntsplot(est$cestimates[,2],3)
#add the histogram to the estimated density plot
plot(Turtles_hist, freq=FALSE, add=TRUE)

[Package CircNNTSR version 2.2-1 Index]