Learn R Programming

pterrace (version 1.0)

terracearea: Draws a terrace area plot for a persistence terrace.

Description

Draws a terrace area plot for a persistence terrace.

Usage

terracearea(xyz, dimension, maxheight = NULL)

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 the terrace area plot.

maxheight

an integer specifying the maximum heights to show. The default value is NULL.

Value

The function terracearea returns the terrace area plot.

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
threecirclept <- computept(three_circle_dat,sp=spseq,lim=lim,by=by)

# draw terrace area plot
terracearea(threecirclept,dimension=1)
# }

Run the code above in your browser using DataLab