Learn R Programming

svdvis (version 0.1)

radviz: Radial Coordinates Plots

Description

Creates radial coordinates plots, with m variables (rows) and n samples (columns). Each variable is mapped onto a circle, using data points as spring constants. Each column is re-scaled to have numeric values between 0 and 1.

Usage

radviz(dat, group = NULL, color = NULL, hjust = 0, vjust = 0, alpha = 1)

Arguments

dat
A matrix with m rows and n columns, where columns represent dimensions.
group
A vector of length m, specifying groups (e.g., phenotypes or conditions for m samples).
color
A vector of hex color codes to represent groups.
hjust
A parameter to horizontally adjust axis names around the circle; hjust arguments for geom_text
vjust
A parameter to vertically adjust axis names around the circle; vjust arguments for geom_text
alpha
A numeric value for transparency.

Value

svd.radial creates and draws a figure, which is a ggplot object.

References

Ankerst M., Keim D. A., Kriegel H.-P. Circle Segments: A Technique for Visually Exploring Large Multidimensional Data Sets, IEEE Visualization, 1996.

K.A. Olsen, R.R. Korfhage, K.M. Sochats, M.B. Spring and J.G. Williams. Visualisation of a Document Collection: The VIBE System, Information Processing and Management, Vol. 29, No. 1, pp. 69-81, Pergamon Press Ltd, 1993.

See Also

svd.radial

Examples

Run this code
set.seed(1234)
dat = matrix(rnorm(9*4), 9, 4, dimnames=list(paste(1:9),letters[1:4]))
radviz(dat, group=c(rep("Group 1",3),rep("Group 2",3),rep("Group 3",3)))

Run the code above in your browser using DataLab