Learn R Programming

Radviz (version 0.9.3)

rescalePlot: Rescaling of projected data for plotting

Description

Rescaling of projected data for plotting

Usage

rescalePlot(x, fraction = 0.9)

Arguments

x

a radviz object as produced by do.radviz

fraction

numeric value, indicating which fraction of the unit circle should be used for the rescaled plot

Value

a radviz object as produced by do.radviz

Details

A different rescaling is used here for plotting the projected data as compared to do.radviz. Only feature-wise rescaling is applied to the original data (through do.L), in accordance with the rescaling used in do.optimFreeviz and do.optimGraphviz. The projected data is then rescaled based on amplitude, to cover a pre-specified fraction of the unit circle. For Freeviz and Graphviz objects, the rescaling will issue a warning if some points extend beyond the some anchors: in that case only the direction of the anchor can be interpreted but not the magnitude represented by the anchor's position.

Examples

Run this code
# NOT RUN {
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')
S <- make.S(das)
rv <- do.radviz(iris,S)
library(ggplot2)
plot(rv)+geom_point(aes(color=Species))
new.rv <- rescalePlot(rv)
plot(new.rv)+geom_point(aes(color=Species))

# }

Run the code above in your browser using DataLab