Last data update: 2014.03.03

R: Plots an NNTS density for a variable defined in the interval...
nntsplotInterval0to1R Documentation

Plots an NNTS density for a variable defined in the interval [0,1)

Description

Plots the NNTS density for a variable defined in the interval [0,1)

Usage

nntsplotInterval0to1(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

Author(s)

Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez

Examples

data<-c(1,2,4,6,2)
cutpoints<-c(0,0.2,0.4,0.6,0.8,0.9999999)
est<-nntsmanifoldnewtonestimationinterval0to1(data,cutpoints,5,1)
cpars<-est$cestimates[,2]
nntsplotInterval0to1(cpars, 1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(CircNNTSR)

Attaching package: 'CircNNTSR'

The following object is masked from 'package:grDevices':

    trans3d

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CircNNTSR/nntsplotInterval0to1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: nntsplotInterval0to1
> ### Title: Plots an NNTS density for a variable defined in the interval
> ###   [0,1)
> ### Aliases: nntsplotInterval0to1
> 
> ### ** Examples
> 
> data<-c(1,2,4,6,2)
> cutpoints<-c(0,0.2,0.4,0.6,0.8,0.9999999)
> est<-nntsmanifoldnewtonestimationinterval0to1(data,cutpoints,5,1)
> cpars<-est$cestimates[,2]
> nntsplotInterval0to1(cpars, 1)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>