Hello,
quantum wrote > > How can I use the curve when I have a vector? How should the R code look > like? > You can't. From the manual: "expr The name of a function, or a call or an expression written as a function of x which will evaluate to an object of the same length as x." Your function does not return an object of the same length as x. It triples it's length. You are complicating what is simple and was already answered. Your latest function, t, has that problem. A second problem is that it returns a vector when to make some sense it should return a matrix. ?cbind A third problem is the name 't', it is the name of R's matrix transpose function. Tip: Plot each curve one at a time like said before. Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/To-make-a-graph-for-4-functions-tp4592941p4593708.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.