plot.cover: Hasse diagram

Description Usage Arguments Examples

View source: R/plot.cover.R

Description

Function plot methods for objects of S3 classes wprof, incidence, cover. Draw the corresponding Hasse diagram.

Usage

1
2
3
4
5
6
7
## S3 method for class 'wprof'
plot(x,  shape = c("square", "circle", "equispaced"), ...)
## S3 method for class 'incidence'
plot(x, shape = c("square", "circle", "equispaced"), ...)
## S3 method for class 'cover'
plot(x, shape = c("square", "circle", "equispaced"),
    pch = 21, cex = max(nchar(rownames(x))) + 2, bg = "white", ...)

Arguments

x

an object of S3 class wprof, an object of S3 class incidence or an object of S3 class cover.

shape

shape of the Hasse diagram. See vertices.

pch

graphical parameter. See plot.default.

cex

graphical parameter. See plot.default.

bg

graphical parameter. See plot.default.

...

further optional graphical parameters. See plot.default.

Examples

1
2
3
4
5
6
7
prf <- var2prof(varlen = c(5, 5, 5))
prf$freq <- sample(c(rep(0, 20), 1, 2, 3), 5*5*5, replace = TRUE)
prf <- obsprof(prf)

z <- getzeta(prf)

plot(z, shape = "equispaced", col = prf$freq, lwd = 2)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

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

    union

Loading required package: netrankr

Attaching package: 'parsec'

The following objects are masked from 'package:igraph':

    transitivity, vertices

parsec documentation built on May 2, 2019, 6:08 p.m.