hexplot: A hexplot function for Radviz objects

View source: R/hexplot.R

hexplotR Documentation

A hexplot function for Radviz objects

Description

Plots the Dimensional Anchors and a hexplot-based density representation of projected data points in a 2D space.

Usage

hexplot(
  x,
  main = NULL,
  nbins = 30,
  color = NULL,
  label.color = NULL,
  label.size = NULL,
  mincnt,
  style
)

Arguments

x

a radviz object as produced by do.radviz

main

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

nbins

the number of equally spaced bins for the binning computation (see geom_hex for details)

color

if color is not NULL and corresponds to one of the channels in the hexcols slot of the Radviz object, cells will be colored using colors in the hexcols slot

label.color

the color of springs for visualization

label.size

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

mincnt

deprecated, see stat_summary_hex instead

style

deprecated, see stat_summary_hex instead

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)
hexplot(rv,color='Sepal.Length')


yannabraham/Radviz documentation built on April 3, 2022, 1:30 p.m.