Return value of a function using another function inside returning a list

I use solve(A,b) inside my function; 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!