[R] Plotting polynomial fit

2009-04-26 Thread Ronnen Levinson
Hi. Is there an analog to abline() that can be used to plot a polynomial fit? For example, I can draw the straight-line fit fit <- lm(y ~ x) via abline(coef=fit$coef) but I'm not sure how to draw the polynomial fit fit <- lm(y ~ poly(x,2)) I do see the function curve(), but not

[R] Converting 1-D array to vector

2008-08-26 Thread Ronnen Levinson
2 minor 7.0 year 2008 month 04 day22 svn rev45424 language R version.string R version 2.7.0 (2008-04-22) -- Ronnen Levinson, Ph.D. scientist, Lawrence Berkeley National Lab The Onion horoscope: Libra September

[R] Text shrinking in pdf graphics

2008-05-04 Thread Ronnen Levinson
__ 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.

[R] Cannot allocate large vectors (running out of memory?)

2008-03-24 Thread Ronnen Levinson
mingw32 system i386, mingw32 status major 2 minor 6.1 year 2007 month 11 day26 svn rev43537 language R version.string R version 2.6.1 (2007-11-26) -- Ronnen Levinson, Ph.D. scienti