Learn R Programming

shinylight (version 1.1.2)

shinylight.setElementPlot: JavaScript function: Sets an <img> element to display a plot returned by runR.

Description

Normally you do not need to call this because to get shinylight to produce a plot you need to set the plotElement argument, and doing so will cause this element to receive the plot automatically.

Arguments

elementOrId

string, HTMLImageElement The <img> element (or its id) that will receive the image.

result

object The result from runR.