Trelliscopejs in Workbench is not rendering

This code doesn't work in Posit Workbench.

library(trelliscopejs)
library(ggplot2)
library(gapminder)

ggplot(aes(year,lifeExp), data = subset(gapminder, continent == "Europe")) +
  geom_point()  +
  facet_trelliscope(~ country + continent, nrow = 2, ncol = 7, width = 300)

Couldn't load config: https://MyWorkbenchServer/session/trelliscope240a926d62b339/appfiles/config.jsonp?__loadTrscopeConfig__3b62eeb1=jsonp_yvc1g4tgnl7ld0c

Same issue as this one that never was solved. trelliscopejs does not render in posit workbench viewer but does in open source RStudio IDE

See ?trelliscopejs::facet_trelliscope

Note that self_contained is severely limiting and should only be used in cases where you would either like your display to show up in the RStudio viewer pane, in an interactive R Markdown Notebook, or in a self-contained R Markdown html document.

This sort of works. I can get a static plot to render when I include the argument self_contained = T; so that is progess.

  geom_point()  +
  facet_trelliscope(~ country + continent, nrow = 2, ncol = 7, width = 300, self_contained = T)

However, I get blank plots when I include the as_plotly = True

arguement.

ggplot(aes(year,lifeExp), data = subset(gapminder, continent == "Europe")) +
  geom_point()  +
  facet_trelliscope(~ country + continent, nrow = 2, ncol = 7, width = 300, self_contained = T, as_plotly = TRUE)

Any ideas?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.