interactive_histogram: interactive_histogram

Description Usage Arguments Examples

Description

Takes a basic ggvis histogram and adds an interactive slider to control bin width.

Usage

1
interactive_histogram(myBasicHistogram, binMin, binMax, slideStep)

Arguments

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

Examples

1
2
initialHistogram <- ggvis(mtcars, x=~mpg, fill := "gray")
 interactive_histogram(initialHistogram, 2, 10, 1)

smach/rvisutils documentation built on May 30, 2019, 3:06 a.m.