Displaying a multiple-plot graph using r_fun_plot

145 Views Asked by At

I am having trouble displaying a multiple-plot graph using the ocpu javascript function r_fun_plot(). The R function that is called creates two or more plots use the par() function to lay them out in a matrix. If I call my R function locally (from within RStudio) I will get the correct result. However, when called remotely using r_fun_plot() and with a target of an empty DIV element, no plots are displayed - only the "pdf svg png" pointers are displayed. Clicking these pointers gives a page with the following text:

attempt to select less than one element

In call:
myplots[[index]]

myplots is not in my javascript code or in opencpu.js Does anyone know what I might be doing wrong?

Thanks.

0

There are 0 best solutions below