https://plot.ly/r/using-r-in-jupyter-notebooks/
x <- rnorm(1000)
y <- rchisq(1000, df = 1, ncp = 0)
group <- sample(LETTERS[1:5], size = 1000, replace = T)
size <- sample(1:5, size = 1000, replace = T)
ds <- data.frame(x, y, group, size)
p <- plot_ly(ds, x = x, y = y, mode = "markers", split = group, size = size) %>%
layout(title = "Scatter Plot")
embed_notebook(p)
Error: pandoc document conversion failed with error 1
Traceback:
- embed_notebook(p)
- embed_notebook.plotly(p)
- htmlwidgets::saveWidget(p, tmp)
- pandoc_self_contained_html(file, file)
- pandoc_convert(input = input, from = "markdown", output = output,
. options = c("--self-contained", "--template", template))
- stop("pandoc document conversion failed with error ", result,
. call. = FALSE)