rescalePlot {Radviz} | R Documentation |
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 |
fraction |
numeric value, indicating which fraction of the unit circle should be used for the rescaled plot |
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.
Value
a radviz object as produced by do.radviz
Author(s)
Nicolas Sauwen
Examples
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))