plotpt: Draws a persistence terrace.

Description Usage Arguments Value Examples

Description

Draws a persistence terrace.

Usage

1
plotpt(xyz, dimension, cmax = 10, satellite = T)

Arguments

xyz

a list of computed persistence terraces returned by the function computept.

dimension

an integer selecting the dimension of the persistence terrace to plot.

cmax

an integer specifying the maximum number of colors to be used. The default value is 10.

satellite

a logical variable to select a viewpoint. If FALSE, plots the overall view of the persistence terrace. The default value is TRUE.

Value

The function plotpt returns the persistence terrace graphic.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# load three circle data
data(three_circle_dat)

# input variables
Xlim <- c(-4,12)
Ylim <- c(-4,9)
lim <- cbind(Xlim, Ylim)
by <- 0.1
spseq <- seq(0.01,1.5,length.out = 25)

# compute persistence terrace
## Not run: 
threecirclept <- computept(three_circle_dat,sp=spseq,lim=lim,by=by)

# draw persistence terrace, satellite view
plotpt(threecirclept,dimension=1)
# draw persistence terrace, overall view
plotpt(threecirclept,dimension=1,satellite=FALSE)

## End(Not run)

pterrace documentation built on May 2, 2019, 10:08 a.m.

Related to plotpt in pterrace...