smoothRadviz: A smoothScatter function for Radviz objects

smoothRadvizR Documentation

A smoothScatter function for Radviz objects

Description

Plots the Dimensional Anchors and a smoothed color density representation of projected data points in a 2D space.

Usage

smoothRadviz(
  x,
  main = NULL,
  color = "dodgerblue4",
  nbin = 200,
  label.color = NULL,
  label.size = NULL,
  smooth.color,
  max.dens,
  transformation,
  nrpoints,
  ncols,
  bandwidth
)

Arguments

x

a radviz object as produced by do.radviz

main

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

color

the gradient will be generated from white to color

nbin

the number of equally spaced grid points for the density estimation (see geom_density_2d for details)

label.color

the color of springs for visualization

label.size

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

smooth.color

deprecated, see stat_density2d instead

max.dens

deprecated, see stat_density2d instead

transformation

deprecated, see stat_density2d instead

nrpoints

deprecated, see stat_density2d instead

ncols

deprecated, see stat_density2d instead

bandwidth

deprecated, see stat_density2d 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)
smoothRadviz(rv)


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