bubbleRadviz: A Plotting Function for the Radviz Object

View source: R/bubbleRadviz.R

bubbleRadvizR Documentation

A Plotting Function for the Radviz Object

Description

Plots the Dimensional Anchors and projected data points in a 2D space.

Usage

bubbleRadviz(
  x,
  main = NULL,
  group = NULL,
  color = NULL,
  size = c(3, 16),
  label.color = NULL,
  label.size = NULL,
  bubble.color,
  bubble.fg,
  bubble.size,
  scale,
  decreasing,
  add
)

Arguments

x

a radviz object as produced by do.radviz

main

[Optional] a title to the graph, displayed on top

group

the name of the grouping variable used to aggregate the data

color

[Optional] the name of the variable used to color the points

size

the size range for the plot

label.color

the color of springs for visualization

label.size

the size of the anchors (see customizing ggplot2 for details on default value)

bubble.color

deprecated, use geom_point instead

bubble.fg

deprecated, use geom_point instead

bubble.size

deprecated, use geom_point instead

scale

deprecated, use geom_point instead

decreasing

deprecated, use geom_point instead

add

deprecated, use geom_point instead

Details

This function allows for the projection of clusters in Radviz (for example results of the SPADE algorithm), where the cluster size is derived from the number of events that fall into a specific cluster. If color is not specified the grouping variable is used.

Value

the internal ggplot2 object plus added layers, allowing for extra geoms to be added

Author(s)

Yann Abraham

Examples

data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
S <- make.S(das)
rv <- do.radviz(iris,S)
bubbleRadviz(rv, group='Species')


Radviz documentation built on March 26, 2022, 1:10 a.m.