bokeh/rbokeh

parameter "image_url" in ly_image_url() not work for local image

zyllifeworld opened this issue · 2 comments

Hi,

I'm trying to add a image layer to the graph panel use ly_image_url(), but it seems does not work.

here is my code:

p <- figure(xlab = "x", ylab = "y", height = 450) %>%
  ly_image_url(0, 0, w = 500, h = 600, image_url = "./local/image/XXX.png",
               anchor = "center") 
p

I will be grateful for help.

Modern browsers will not allow loading local images into HTML canvases for security reasons. There is no way to make this work.

@bryevdv thanks for your timely reply. I agree with you, I think it maybe possible just for shiny app. Based on the discuss from this issue. rstudio/leaflet#634. I came up a solution may work for shiny app in rstudio/leaflet#674.

bokeh_plot

I will closed this issue.