radviz
: an htmlwidget for https://github.com/biovisualize/radviz
See https://github.com/biovisualize/radviz for more info.
This is a super-basic widget that's looking for a home (i.e pls take over development! :-)
The following functions are implemented:
radviz
: Make a radvizadd_dimensions
: Add the columns (dimensions) you wish to map in the radvizadd_color
: Add color to the chartsadd_tooltip
: Add a tooltip to a radviz widgetThe following data sets are included:
devtools::install_github("hrbrmstr/radviz")
options(width=120)
library(radviz) # current verison packageVersion("radviz")
radviz(iris, diameter=600, margin=100, use_repulsion=TRUE, draw_links=TRUE, width=600, height=500) %>% add_dimensions(c('Sepal.Length', 'Sepal.Width', 'Petal.Length', 'Petal.Width')) %>% add_color("Species") %>% add_tooltip("function(d){ return 'Petal width: ' + d['Petal.Length']; }")
library(radviz) library(testthat) date() test_dir("tests/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.