Learn R Programming

pterrace (version 1.0)

plotpt: Draws a persistence terrace.

Description

Draws a persistence terrace.

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab