R Plot

Component for rendering an R plot inside an ISLE lesson.

Example:

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

Options:

  • code: R code used to create the plot. Default: ''.
  • 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: ''.

results matching ""

    No results matching ""