I am trying to embed image in Plotly graph but somehow the image is not displayed. Does anyone have any idea what am I missing:
library(plotly)
p <- plot_ly(x=c(1, 2, 3), y=c(1, 2, 3), type='scatter')
p2 <-
p %>%
layout(images = list(
list(source = "https://images.plot.ly/language-icons/api-home/python-logo.png",
xref = "paper",
yref = "paper",
x= 0,
y= 1,
sizex = 0.2,
sizey = 0.2,
opacity = 0.8)
)
)
p2