R Plot

Component for rendering an R plot inside an ISLE lesson.


<RPlot code="hist( c(20,50,40,70,40,30) )" />

Open interactive preview


  • code: R code used to create the plot. Default: ''.
  • fileType: Image file type. Default: 'png'.
  • width: number giving the width of the created plot (in px). Default: 600.
  • height: number giving the height of the created plot (in px). Default: 400.
  • libraries: Array of R libraries that should be loaded automatically when the input code is executed. Default: [].
  • prependCode: string or an Array of R code to be prepended to the code stored in code when evaluating. Default: ''.
  • onDone: Callback function invoked with err, img and body arguments once a plot is created.

results matching ""

    No results matching ""