basis_guided | R Documentation |
Performs simulated annealing on the index function, solving for it's local extrema. Returns only the last identified basis of the optimization. A truncated, muted extension of tourr::save_history(guided_tour())).
basis_guided(data, index_f = tourr::holes(), d = 2, ...)
data |
Numeric matrix or data.frame of the observations. |
index_f |
The index function to optimize.
|
d |
Number of dimensions in the projection space. |
... |
Optional, other arguments to pass to
|
Numeric matrix of the last basis of a guided tour.
tourr::guided_tour
for annealing
arguments.
Other basis producing functions:
basis_half_circle()
,
basis_odp()
,
basis_olda()
,
basis_onpp()
,
basis_pca()
dat <- scale_sd(wine[, 2:6])
basis_guided(data = dat, index_f = tourr::holes())
basis_guided(data = dat, index_f = tourr::cmass(),
alpha = .4, cooling = .9, max.tries = 10, n_sample = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.