Re: [R] Adding image to plotting area

2011-01-28 Thread Jim Lemon
On 01/28/2011 11:00 AM, Dario Strbenac wrote: Hello, I've drawn a black rectangle over the plotting area, and when I add an image() heatmap, it doesn't take up all the area, but is set inward from the black rectangle. Can anyone suggest how to make it stretch out to the entire area ? Minimal

Re: [R] Installing rgl

2011-01-28 Thread mohammad...@gmail.com
Hi Kevin, I have the same problem that you encountered , how did you resolved it? could you help me please?!!! Mohammad -- View this message in context: http://r.789695.n4.nabble.com/Installing-rgl-tp865867p3243992.html Sent from the R help mailing list archive at Nabble.com. _

[R] how to test pawer law distribution

2011-01-28 Thread lukas
Can somebody me helfen? I am confused how to use R to test the data wether it is pawer law distribution or not . power.law.fit in R can be used to calculate alpha,but with my knowledge firstly xmin should be confirmed before testing the data.Aber how? And the data has some zero values, that mean

Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
Hi Ben, thanks a lot for your answer. > There are four reasonable solutions to your problems: > > 1. ignore the warnings, as long as they are all of the > same type (NaNs/NAs being produced by dbinom or dpois), > and as long as the final results look sensible. probably fine for me. The fit for

[R] Letters(V1,V2..) as row col indices instead of numbers

2011-01-28 Thread kparamas
What makes matrix to print V1, V2 as the row and col indices instead of numbers?? cdata = read.table("ramesh.txt") #cdata is read from a file. c1 = cor(cdata) I am printing c1 below. I need only numbers. I dont need V1, V2...what should I do in this case?? http://r.789695.n4.nabble.com/file/n32

Re: [R] identifying when one element of a row has a positive number

2011-01-28 Thread Daisy Englert Duursma
Hello, Thanks to everyone for the multiple answers. Josh, thanks for the function. My data 12 datasets have over 500,000 rows so your answer greatly appreciated. Cheers, Daisy On Thu, Jan 27, 2011 at 9:10 PM, Joshua Wiley wrote: > Hi, > > This problem seemed deceptively simple to me.  After cha

Re: [R] asterisk in subscript

2011-01-28 Thread Prof Brian Ripley
On Fri, 28 Jan 2011, Andrew Collier wrote: hi, i am trying to label a plot axis with the equivalent of the latex $n_*$. i initially tried expression(paste(italic(n)["*"])) but this made the * absolutely tiny and centred about midway wrt the n. then expression(paste(italic(n)[textstyle("*")])

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-28 Thread Jim Lemon
On 01/28/2011 07:57 AM, Greg Snow wrote: Try: library(TeachingDemos) plot(Sepal.Length~Sepal.Width, data=iris) tmp.y<- iris$Sepal.Length for( i in unique(iris$Sepal.Width) ) { tmp<- iris$Sepal.Width == i tmp.y[ tmp ]<- spread.labs( tmp.y[tmp], .6*strheight('A'),

[R] asterisk in subscript

2011-01-28 Thread Andrew Collier
hi, i am trying to label a plot axis with the equivalent of the latex $n_*$. i initially tried expression(paste(italic(n)["*"])) but this made the * absolutely tiny and centred about midway wrt the n. then expression(paste(italic(n)[textstyle("*")])) made the * about the right size but now it

Re: [R] agnes clustering and NAs

2011-01-28 Thread Gavin Simpson
On Fri, 2011-01-28 at 10:00 +1100, Dario Strbenac wrote: > Hello, > > Yes, that's right, it is a values matrix. Not a dissimilarity matrix. > > i.e. > > > str(iMatrix) > num [1:23371, 1:56] -0.407 0.198 NA -0.133 NA ... > - attr(*, "dimnames")=List of 2 > ..$ : NULL > ..$ : chr [1:56] "-81

Re: [R] Warning with mle

2011-01-28 Thread Antje Niederlein
Hi Ben, thanks a lot for your answer. > There are four reasonable solutions to your problems: > > 1. ignore the warnings, as long as they are all of the > same type (NaNs/NAs being produced by dbinom or dpois), > and as long as the final results look sensible. probably fine for me. The fit for

Re: [R] read.table() versus scan()

2011-01-28 Thread Tal Galili
Hi Roark, >From my experience, this error is because of problem with reading the headers, or problem with the "sep" parameter in read.table Try something like read.table(... ,sep ="\t") (This is for tab delimited files) Others might give more ideas. Cheers, Tal Contact Detail

Re: [R] Please help -- Converting a 2D matrix to 3 columns for graphical representation

2011-01-28 Thread Tal Galili
There you go: rdata = replicate(100, rnorm(15)) #construct a 2D matrix c1 = cor(rdata) require(reshape) m_c1 <- melt(as.matrix(c1)) head(m_c1) Cheers, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-727584

Re: [R] Boxplot

2011-01-28 Thread Tal Galili
This should do it: boxplot(log(a[,2:52]),main = list.files()[3],col = c("red", "green")) Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (H

[R] Measure execution time

2011-01-28 Thread Alaios
Dear list members, I would like to measure how much time one function call makes from the time is call until the time it returns. Could you please tell me if that is possible in R? Best Regards Alex __ R-help@r-project.org mailing list https://stat.e

<    1   2