Description Usage Arguments Examples
Takes a basic ggvis histogram and adds an interactive slider to control bin width.
1 | interactive_histogram(myBasicHistogram, binMin, binMax, slideStep)
|
myBasicHistogram |
a ggiv histogram such as ggvis(mydf, x = ~xcolumn, fill := "gray") binMin number, the minimum bin width for the histogram binMax number, the maximum bin width for the histogram slideStep number, the increment the slider should change with each movement |
1 2 | initialHistogram <- ggvis(mtcars, x=~mpg, fill := "gray")
interactive_histogram(initialHistogram, 2, 10, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.