rescalePlot | R Documentation |
Rescaling of projected data for plotting
rescalePlot(x, fraction = 0.9)
x |
a radviz object as produced by |
fraction |
numeric value, indicating which fraction of the unit circle should be used for the rescaled plot |
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.
a radviz object as produced by do.radviz
Nicolas Sauwen
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.