Learn R Programming

cba (version 0.2-25)

circleplot.dist: Plotting Distance Graphs

Description

Function for visualizing distance graphs using a circular layout.

Usage

circleplot.dist(x, cutoff = 0.5, col = 1, circle = FALSE,
                scale = 1.4)

Arguments

x

an object of class dist.

cutoff

a numeric value specifying the threshold for edge exclusion.

col

a number or string specifying the edge color to use.

circle

a logical value specifying if a circle connecting the nodes should be drawn.

scale

a numeric value specifying the plot range (the default accommodates node labels).

Author

Christian Buchta

Details

Plots the distance graph of x placing its nodes on a circle such that the number of crossing edges is approximately minimized. This is achieved by using order.dist for seriation.

See Also

order.dist.

Examples

Run this code
##
data(iris)
d <- dist(iris[,-5])[[1:26]]
circleplot.dist(d, col = 2, scale = 1)

dimnames(d) <- LETTERS[1:26]
circleplot.dist(d)

Run the code above in your browser using DataLab