Questions tagged [rbokeh]

RBokeh is the the R-Language binding for the Bokeh visualization library. This tag should be used for questions specifically concerning using Bokeh from the R language.

RBokeh is an R-language binding for the Bokeh visualization library.

31 questions
1
vote
1 answer

rbokeh hover tooltips - NSE getting in the way

I'm trying to make a customized tooltip in rbokeh but when I try to do it programatically the non-stadard evaluation gets in the way. From the example: library(rbokeh) mtcars$model <- row.names(mtcars) figure() %>% ly_points(disp, mpg, data =…
GregF
  • 1,292
  • 11
  • 14
1
vote
0 answers

Add hover to ly_text in rbokeh

Is it possible to add hover text to an ly_text() layer in rbokeh? For example, how can I add hover text to the numbers drawn in this figure? d = data.frame(x=1:5, y=1:5, text=as.character(1:5)) figure() %>% ly_text(x, y, text, data=d) Thanks!
Kent Johnson
  • 3,320
  • 1
  • 22
  • 23
1
vote
1 answer

Exporting RBokeh Plot for Non-R Users

I have created an interactive plot in R using the RBokeh package. How do I save it so that it is a file that non R users can open and use? So basically currently I can hover my cursor over points in the plot and other information pops up for each…
Nick
  • 833
  • 2
  • 8
  • 11
0
votes
1 answer

How to create a Box-plot of nested/grouped categories in rbokeh?

I need to create a nested category box-plot where the x-axis is a combination of 2 factor(category) groups. In ly_boxplot(), the x argument can either be a numeric vector or a factor. Is there a way that it will accept a combined factor, say, of 2…
M.AbdAllah
  • 25
  • 5
0
votes
1 answer

Two y Axes in RBokeh

I need to draw a combo chart including two series of bars and two lines using RBokeh. The syntax for adding bars and lines is quite simple but I cannot add a second y-axis. y_axis position can be set to left or right but it does not work when I use…
0
votes
1 answer

formatting time axis in rbokeh

I am trying to create a linechart with rbokeh where the x-axis is supposed to show a datetime variable. Consider the following example: data <- tibble( time = as.POSIXct(c("2019-08-27 08:15:00", "2019-08-27 10:30:00", …
O René
  • 305
  • 1
  • 12
0
votes
1 answer

Rbokeh barplot reordered by x-axis

Here is a simple example of barplot expressed in Rbokeh. library(rbokeh) # total yield per variety figure() %>% ly_bar(variety, yield, data = lattice::barley, hover = TRUE) %>% theme_axis("x", major_label_orientation = 90) Result are shown as…
Wookeun Lee
  • 463
  • 1
  • 6
  • 18
0
votes
1 answer

How to display statsmodels Mosaics directly with Bokeh

I'm looking to create some mosaic plots to visualize contingency tables. Mosaic plots are not (for all I know) natively supported by Bokeh so I'm using the statsmodels library (link). Problem is plots from that library don't extend Bokeh's Figure…
Tapal Goosal
  • 361
  • 4
  • 13
0
votes
1 answer

Using a For Loop to generate scatter plots on Bokeh (with Pandas dataframe)

I am trying to generate scatter plots using bokeh and saving into a html file. The number of subplots I am making is a non-constant number and I cannot use p1=figure(...) p2=figure(...) in bokeh. I am looking for an equivalent bokeh code for the…
Prithvee
  • 71
  • 1
  • 6
0
votes
1 answer

Create an interactive level plot (heatmap)

I have some test data that looks like…
Vint
  • 413
  • 6
  • 17
0
votes
1 answer

R bokeh hexbin colorlegend?

I have been creating a hexagonal binning plot with rbokeh, which worked wonderfully. However, I would really like to a color legend into my plot, which does not seem to work. library(rbokeh) figure(legend_location = "top_right") %>% …
S.K.
  • 365
  • 1
  • 3
  • 17
0
votes
1 answer

How to specify order of glyph layers in rbokeh?

I am trying to build a network visualisation using the rbokeh package. library(igraph) library(rbokeh) library(dplyr) g <- random.graph.game(n=100,p=0.3) L <- as.data.frame(igraph::layout_with_fr(g)) %>% rename(x=V1,y=V2) url1 <-…
Gabor Szalai
  • 135
  • 1
  • 11
0
votes
1 answer

rbokeh add another layer glyph to a mapped legend

I am working in flexdashboards using rbokeh to create dynamic interactive graphs and charts on a series of health related dashboards. My current dilemma revolves around adding a line to a stacked bar chart with mapped color values and having it…
sconfluentus
  • 4,693
  • 1
  • 21
  • 40
0
votes
1 answer

r bokeh chart legend - placed poorly move

I have been working in flexdashboards using rbokeh to draw some dynamic graphs. Because this is a bar chart mapped to categorical data in the variable Classification, I am unable to manually create a legend, which is fine because rbokeh does it…
sconfluentus
  • 4,693
  • 1
  • 21
  • 40
0
votes
2 answers

What does shiny_callback capture in rbokeh?

I'm trying to use the tool_lasso_select feature in rbokeh. What I would like is for the user to use the tool to select a group of points in a scatterplot and summary statistics of the group of points selected would be created as a result in the next…
Easthaven
  • 118
  • 1
  • 8