[R] using myfunction in stat_function

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Thu Jun 7 09:29:27 CEST 2018


Your example is not reproducible.

Perhaps read [1]

[1] http://rstudio-pubs-static.s3.amazonaws.com/3365_9573f6d661b444499365fe1841ee65d3.html

On June 6, 2018 8:04:44 PM PDT, Veerappa Chetty <chettyvk using gmail.com> wrote:
>HI,
>
>I use solve(A,b) inside my function, myfun2; it works fine when I
>return
>one value or a list.
>
> I want use the return values in ggplot as below: ggplot(data.frame(
>x=c(0.1,0.8)),aes(x=x))+stat_function(fun=myfun.2,geom="line")
>I get a blank graph. Would greatly appreciate help! Thanks.

-- 
Sent from my phone. Please excuse my brevity.




More information about the R-help mailing list