precise_distribs.Rd
While trelliscopejs is a very powerful visualization paradigm,
it can be hard to munge the data into the appropriate format. This function automatically creates a trelliscopejs visualization
populated with pivot tables created by rpivotTable
.
precise_distribs(data, parallel = FALSE, verbose = FALSE)
data | A square, numeric dataframe, matrix or tibble. |
---|---|
parallel | XYZ |
verbose | XYZ |
nbinsx | String name of the pivottable.js aggregator to prepopulate the pivot table. |
A trellisopejs object populated by pivot tables.
For the arguments aggregator and renderer see aggregatorName and rendererName arguments from the rpivotTable
package.
For all other arguments (except the data argument), see the identical arguments in the trelliscopejs
package.
Muchmore, B., Muchmore P. and Alarcón-Riquelme ME. (2018). Optimal Distance Matrix Construction with PreciseDist and PreciseGraph.
Enzo Martoglio (2018). rpivotTable: Build Powerful Pivot Tables and Dynamically Slice & Dice your Data. R package version 0.3.0. https://CRAN.R-project.org/package=rpivotTable
library(PreciseDist) test_matrix <- replicate(10, rnorm(100)) test_dists <- test_matrix %>% precise_dist(c("manhattan", "euclidean"))#> [1] "Starting dists calculations at 2018-11-29 15:20:20" #> [1] "Finished dists calculations at 2018-11-29 15:20:21" #> [1] "Calculations took: 0.53 seconds" #> [1] "Starting dist_funcs calculations at 2018-11-29 15:20:21" #> [1] "Finished dist_funcs calculations at 2018-11-29 15:20:22" #> [1] "Calculations took: 0 seconds"#> [1] "Starting distance matrix fusion using fuse at 2018-11-29 15:20:22" #> [1] "Finished distance matrix fusion at 2018-11-29 15:20:22" #> [1] "Fusion took: 0 seconds"