circleplot.dist: Plotting Distance Graphs

Description Usage Arguments Details Author(s) See Also Examples

View source: R/circleplot.R

Description

Function for visualizing distance graphs using a circular layout.

Usage

1
2
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).

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.

Author(s)

Christian Buchta

See Also

order.dist.

Examples

1
2
3
4
5
6
7
##
data(iris)
d <- dist(iris[,-5])[[1:26]]
circleplot.dist(d, col = 2, scale = 1)

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

Example output

Loading required package: grid
Loading required package: proxy

Attaching package: 'proxy'

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

    as.dist, dist

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

    as.matrix

length: 8.209847 
length: 8.026726 

cba documentation built on May 2, 2019, 1:39 p.m.

Related to circleplot.dist in cba...