Interactive ggvis plot - question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Interactive ggvis plot - question

Lars Bishop-2

I'm trying to plot a histogram (or alternatively the density) of a
variable, with a slider that displays a vertical line with the
corresponding quantile of the distribution of the variable. That is, I what
to interactivity pick for example, the median, and have the vertical line
move to the corresponding value.

Is this possible to implement in ggvis? I read this comment from Hadley
that says vertical lines are not implemented in ggvis (at least as of last

Any guidance would be greatly appreciated.


        [[alternative HTML version deleted]]

[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.