[R] To make a graph for 4 functions
R. Michael Weylandt
michael.weylandt at gmail.com
Fri Apr 27 20:55:36 CEST 2012
Use curve() like Rui said.
Michael
On Fri, Apr 27, 2012 at 1:48 PM, quantum <quantum at live.dk> wrote:
> Thanks for your response.
>
> Now I have 3 functions for example
>
> y0<-function(x) x^2
> y1<-function(x) x^3
> y2<-function(x) x^5
>
> t<-function(x) c(y0(x),y1(x),y2(x))
>
> I want to plot this so I get 3 graphs in a diagram.
>
> How can I do this?
>
> plot(x,t(x),type="l") doesnt work.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/To-make-a-graph-for-4-functions-tp4592941p4593316.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list