Examples for 'rbokeh::ly_annulus'


Add an "annulus" layer to a Bokeh figure

Aliases: ly_annulus

Keywords:

### ** Examples

rescale <- function(x)
  (x - min(x)) / diff(range(x))
figure() %>%
  ly_annulus(Sepal.Length, Sepal.Width, data = iris,
    color = Species, hover = Species, alpha = 0.5,
    outer_radius = rescale(Petal.Length) * 0.3,
    inner_radius = rescale(Petal.Length) * 0.1)
Error in loadNamespace(name): there is no package called 'webshot'

[Package rbokeh version 0.5.2 Index]