An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131215/9b120f1e/attachment.pl>
how to add a line in the graph?
4 messages · 水静流深, Dániel Kehl, Frans Marcelissen +1 more
t<- -4:4 y<-c(5,7,10,13,15,16,14,12,11) plot(t,y,type="l", ylim=c(-20,20)) curve(0.83*x-0.44*x^2, add=TRUE) I added ylim to plot so that your curve is on the graph. Maybe you wanted to use different parameters. Try going through a basic manual of R! daniel ________________________________________ Felad?: r-help-bounces at r-project.org [r-help-bounces at r-project.org] ; meghatalmazó: ???? [1248283536 at qq.com] K?ldve: 2013. december 15. 13:46 To: r-help T?rgy: [R] how to add a line in the graph? t<--4:4 y<-c(5,7,10,13,15,16,14,12,11) plot(t,y,type="l") how can i add a curve y=0.83*t-0.44*t^2 in the graph? ______________________________________________ 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131215/37140540/attachment.pl>
1 day later
On Dec 15, 2013, at 4:46 AM, ???? wrote:
t<--4:4 y<-c(5,7,10,13,15,16,14,12,11) plot(t,y,type="l") how can i add a curve y=0.83*t-0.44*t^2 in the graph? [[alternative HTML version deleted]]
t<--4:4 y<-c(5,7,10,13,15,16,14,12,11) plot(t,y,type="l", ylim=c(-4,16)) curve( 0.83*x-0.44*x^2 , add=TRUE, col="red")
David Winsemius Alameda, CA, USA