Learn R Programming

stlnpp (version 0.4.0)

methods.tpp: Methods for one-dimensional point patterns

Description

Methods for one-dimensional point patterns.

Usage

# S3 method for tpp
plot(x,xlab="time",ylab="",main = "cumulative number",...)
# S3 method for tppint
plot(x,xlab=xlab,xlim=xlim,line=2.5,main="NULL",...)
# S3 method for tpp
print(x,...)
# S3 method for tppint
print(x,...)
# S3 method for tpp
[(x,i)
# S3 method for tppint
[(x,i)

Arguments

x

an object of class tpp or tppint.

xlab,ylab

the x,y label of the plot.

main

overall title for the plot.

xlim

giving the x limits for the plot.

line

specifying a value for line overrides the default placement of y label, and places it this many lines outwards from the plot edge.

i

numeric, logical, or an object of class tpp

...

graphics parameters passed to plot/print function.

Author

Mehdi Moradi <m2.moradi@yahoo.com>

Examples

Run this code
X <- tpp(sample(c(1:24),200,replace = TRUE))
plot(X)
plot(density(X))

Run the code above in your browser using DataLab