View source: R/get_histories.R
get_local_history | R Documentation |
Returns a local tour based on currently displayed projection(s) to the 'python' backend. This local tour is generated with the 'tourr' functions 'save_history' and 'local_tour'.
get_local_history(data, starting_projection)
data |
the dataset to calculate the projections with. In practice only the two first rows of the dataset are provided as the actual data is not needed. |
starting_projection |
the initial projection one wants to initiate the local tour from |
history object containing the projections of the requested tour
library(tourr)
data("flea", package = "tourr")
flea <- flea[-7]
prj <- tourr::basis_random(ncol(flea), 2)
get_local_history(flea, prj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.