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
7
votes
3 answers

How to color rows and/or cells in a Bokeh DataTable?

Starting from Initial table, I need to highlight(color) elements as shown in either one of the table examples Ex. 1, Ex. 2, Ex. 3. Any idea?
flamenco
  • 2,702
  • 5
  • 30
  • 46
5
votes
1 answer

Setting xlim for rbokeh plot inside shiny application

I'm using the rbokeh package for R. I've been having some good results integrating into a shiny app. I want to now integrate a feature where a dateRangeInput will now select the date range for the chart(it is time series data). ##necessary…
Jimbo
  • 928
  • 1
  • 8
  • 15
4
votes
1 answer

Unable to update datasource in Bokeh python

I am using Bokeh 1.0.1. I am unable to update the data source in the Update method i.e src.data.update(new_src.data) doesn't seem to work. Below is the full code. def modify_doc(doc): def create_dataset(df, resample='D'): # Resample the…
Po Xin
  • 113
  • 5
4
votes
1 answer

Get Warning Message Using rbokeh in R Notebook

Running Ubuntu 17.10, and running R Notebook on RStudio through Anaconda. When I try to run the simple example from the rbokeh website in a R Notebook : p <- figure() %>% ly_points(Sepal.Length, Sepal.Width, data = iris, color =…
drizzle123
  • 517
  • 5
  • 18
3
votes
0 answers

show subplot in tooltip on hover in scatterplot in Rbokeh

I am generating an interactive scatterplot with Rbokeh. My data is stored in a data.table. data(iris) library(data.table) dt.iris <- data.table(iris) library(rbokeh) figure() %>% ly_points(Sepal.Length, Sepal.Width, data = dt.iris, …
3
votes
1 answer

How can I make a histogram in rbokeh?

I am trying to generate a histogram in rbokeh. The direct approach ly_hist leads to an unexpected counts (fig below, top). The indirect approach ly_bar gives a x-axis that is not sorted by factor level (fig below, bottom). rbokeh ggplot2 gives…
Henk
  • 3,634
  • 5
  • 28
  • 54
2
votes
0 answers

rbokeh, add legend to histogram plot

I'd like to make a chart with rbokeh that includes three overlapping histograms. I can do this, but no legend appears: library(rbokeh) figure(tools=c(), legend_location="top_right", padding_factor = 0.01) %>% ly_hist(rnorm(10000, mean=0), …
Bob
  • 1,274
  • 1
  • 13
  • 26
1
vote
0 answers

rbokeh color argument- legend messes up on R 3.6

The legend generated for an ly_bar figure that uses a variable for a color argument has a title of base::quote("variable_name"). This is only a problem when generating graphs on R 3.6. figure() %>% ly_bar(variety, yield, color = year, data =…
Karley
  • 62
  • 7
1
vote
0 answers

Rbokeh error in Jupyter: "No such file or directory"

I'm having some problems using Rbokeh in Jupyter with R (all other packages work fine). Essentially, when I try to run the Rbokeh plot, I get this scary looking error message: Warning message in read.dcf(file.path(p, "DESCRIPTION"), c("Package",…
FPL
  • 456
  • 4
  • 21
1
vote
0 answers

Arrows in RBokeh

Working with the rbokeh package I have created a figure p, where I'd like to add some arrows. I'm able to add lines with the ly_segments command, but I can't seem to find a command to add arrows? Do I miss something, or does this function not exist…
1
vote
1 answer

plotting x-axis by days in R

I have a sequence as follows ts <- data.frame(seq.POSIXt(as.POSIXlt("2018-07-14 00:00"), as.POSIXlt("2018-07-16 13:52"), by="min")) names(ts)[1]="Timestamp" ts$Timestamp=format(ts$Timestamp, "%Y-%m-%d %H:%M") values=rnorm(3713) I am trying to…
FlyingPickle
  • 1,047
  • 1
  • 9
  • 19
1
vote
0 answers

examples of use of `rbokeh` inside `jupyter-notebook`

Is it possible (and unproblematic) to use rbokeh in an R cell of a jupyter-notebook? I was not even able to display the plots inline. Are there examples available online?
Primo Petri
  • 424
  • 5
  • 18
1
vote
2 answers

rBokeh dynamic plot size

I am trying to create an rBokeh plot as an output in my Shiny app with rbokehOutput('plot') in the ui and output$plot <- renderRbokeh({ figure() %>% ly_hexbin(x,y) }) in the server part. I'd like the size of the plot to be dynamic in a…
Skumin
  • 153
  • 8
1
vote
0 answers

Loop Plots in R using Rbokeh

I am trying to loop a plots using rbokeh. but, I couldn't able to do it. p1 <-figure(width=400, legend_location = NULL, xlab = "Time", ylab = "S1 Weight") %>% ly_lines(`Dep Time (min)`,`S1 Weight`, data = Data,color= `Process Stage S1` ,hover =…
Shankar Pandala
  • 969
  • 2
  • 8
  • 28
1
vote
0 answers

Overlaying histogram using rbokeh

I am trying to create an overlaying histogram using rbokeh. An example can be found below: library(rbokeh) # Simple approach: h1 <- figure(width = 600, height = 400) %>% ly_hist(eruptions, data = faithful, breaks = 40, freq = T) #…
mammask
  • 285
  • 1
  • 3
  • 10
1
2 3