Error in REvaluate / RGraph

Hello all, 

I am trying use a property control so the user to change the confindence level in a ggplot graph. 

I setup a prop control call conf_int and I am using it in the following code:


plot<- RGraph(print(ggplot(data = output,
        aes(y = dist, x = speed)) + 
        geom_point(size = 5)  +
        geom_smooth(method = "lm", level = conf_int)), 
            display = FALSE,
            data = "output",
            packages = "ggplot2", 
            height = 400, width = 600)

When I run this, I get the following error:

Could not execute function call.
TIBCO Enterprise Runtime for R returned an error: 'Error in REvaluate(bquote({
    .(Rfunction)(.(file), width = .(width : Error in geom_smooth(method = "lm", level = conf_int) : 
  object 'conf_int' not found

Seems like it doesn't understand the conf_int variable,  this seems like an easy fix but I am struggline to find the solution.  

Can anyone point me in the right direction?

Thanks in advance! 



(1) Answer