[R] using myfunction in stat_function

Veerappa Chetty chettyvk @ending from gm@il@com
Thu Jun 7 05:04:44 CEST 2018


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.

-- 
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk using gmail.com

	[[alternative HTML version deleted]]



More information about the R-help mailing list