STRING data from string-db.org. Access is implemented through the STRING API. Here we use javascript:getSTRING
, which is based on HTTP requests through Ajax's XMLHttpRequest()
.
This shiny app makes use of shinyjs::extendShinyjs
, which requires the V8
package.
canvg
) which in turn gets converted to a PNG (using canvas-to-blob
). The custom javascript function are stored in www/my_functions.js
and hooked to an actionButton
in shiny. The SVG to PNG conversion was adapted from KhalilRavanna's solution on Stack Overflow: Save inline SVG as JPEG/PNG/SVG. Since the PNG is based on the SVG, the PNG will reflect any changes to the SVG network node layout.www/my_functions.js
; this is tidier than using inline JS code in app.R
.