[R] loess plot

From: <shetumi_at_aim.com>
Date: Fri, 30 May 2008 10:32:07 -0400


I was trying to plot some data in R. I used the following code to draw a loess fit and got the output as

>?lines(lowess(log(abs(t(res))), log(abs(t(synthesised)))), col="red") Error in lowess(log(abs(t(res))), log(abs(t(synthesised)))) :?? NA/NaN/Inf in foreign function call (arg 1) Then I thought to use your Limma package for background correction. Do you think it's a right choice ?

However, I installed Limma using
> source("http://www.bioconductor.org/biocLite.R")
> biocLite("limma")
> biocLite("statmod")
> library(limma)

and then used the commands which generated the error as follows --

> system.time(fit <- loessFit( log(abs(t(res))), log(abs(t(synthesised)))))
Error in loessFit(log(abs(t(res))), log(abs(t(synthesised)))) : ? binary operation on non-conformable arrays Timing stopped at: 0.57 0.06 0.64 NA NA

> system.time(fit <- plotPrintTipLoess( log(abs(t(res))), log(abs(t(synthesised)))))
Error in 1:layout$ngrid.c : NA/NaN argument In addition: Warning messages:
1: In object$printer :
? $ operator is invalid for atomic vectors, returning NULL

2: In object$M : $ operator is invalid for atomic vectors, returning NULL
3: In object$A : $ operator is invalid for atomic vectors, returning NULL
4: In object$M : $ operator is invalid for atomic vectors, returning NULL
5: In object$A : $ operator is invalid for atomic vectors, returning NULL
6: In layout$ngrid.c :

? $ operator is invalid for atomic vectors, returning NULL Timing stopped at: 0.66 0.01 0.67 NA NA

Can someone please?tell me where the problem is and?what could be the right?command to use ?

        [[alternative HTML version deleted]]



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. Received on Mon 02 Jun 2008 - 03:34:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Jul 2008 - 02:32:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive