[R] changing text direction of mtext

2007-08-24 Thread squall44
Hello, Does anyone know if it's possible to change the text direction of mtext? I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'. I couldn't find an argument for that in the help files. Thanks for any suggestions Tobias -- View this message in context:

Re: [R] changing text direction of mtext

2007-08-24 Thread Matthew Walker
You might like to try par(las=1). Cheers, Matthew squall44 wrote: Hello, Does anyone know if it's possible to change the text direction of mtext? I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'. I couldn't find an argument for that in the help files. Thanks for

Re: [R] changing text direction of mtext

2007-08-24 Thread Uwe Ligges
squall44 wrote: Hello, Does anyone know if it's possible to change the text direction of mtext? I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'. I couldn't find an argument for that in the help files. It's just one help file you have to read: ?mtext. Please also

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Antje
There is no one who could help me with this? Antje schrieb: Hello, I have two questions. I'd like to visualize data with a heatmap and I have the following testcase: x - rnorm(256) nx - x + abs(min(x)) nnx - 255/max(nx) * nx x - matrix(nnx, 16, 16) rownames(x) -

[R] Package installation

2007-08-24 Thread Antje
Hello, I'm running R with windows. Could anybody help me how to install the package biOps (http://cran.mirroring.de/src/contrib/Descriptions/biOps.html) ? I cannot find it at any mirror provided by the GUI; I just found it as tar.gz which cannot be installed with the installation method...

Re: [R] Newbie Question: Using R with PHP and MySQL

2007-08-24 Thread Ryan
What's the best reference, if there is one, for PHP, MySQL, R integration? It is possible to integrate PHP, R and MySQL, but I don't have a good reference for you. If all you need are a few simple charts, then I think it would be easiest for you to forget about R and use some other

Re: [R] Newbie Question: Using R with PHP and MySQL

2007-08-24 Thread Eric Theise
On 8/22/07 1:31 PM, MASFERFC Team wrote: I'd like to (more or less) simultaneously return to the browser a couple of canned charts and graphs based on the data. Nothing fancy, two pie charts and two simple bar-charts to start. I need to generate these on-the-fly, based on the results of the

[R] How to shade vertical bands in a graph?

2007-08-24 Thread del pes
Hello, I would like to draw vertical yellow bands in my graph, but could not find how to do that in the documentation. I set up a page to show what I would like to achieve: http://rstudent.blogg.de/eintrag.php?id=1 (the first picture was manually colored with the Gimp). Any help would be

Re: [R] Package installation

2007-08-24 Thread Vladimir Eremeev
Vladimir Eremeev wrote: This is a source code package. Install Rtools (http://www.murdoch-sutherland.com/Rtools/), then you should be able to compile source packages from the Windows command prompt For example, c:\downloadsR CMD INSTALL biOps_0.1-1.tar.gz provided you have

Re: [R] Package installation

2007-08-24 Thread Vladimir Eremeev
This is a source code package. Install Rtools (http://www.murdoch-sutherland.com/Rtools/), then you should be able to compile source packages from the Windows command prompt For example, c:\downloadsR CMD INSTALL biOps_0.1-1.tar.gz provided you have downloaded the file biOps_0.1-1.tar.gz to

Re: [R] changing text direction of mtext

2007-08-24 Thread squall44
Thanks for your answers, Matthew and Uwe. I used... par(las=1) mtext(side=2) ...and then I adjusted it using 'padj'. The problem is that if I change the proportions of the graph, the mtext will move up or down (relativly to the y-axis). By not using 'par', I can use 'adj' instead of 'padj'

[R] moran's i

2007-08-24 Thread [EMAIL PROTECTED]
how to calculate moran's i having a matrix of species vs. plots? cheers duccio __ R-help@stat.math.ethz.ch 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

[R] NA-values in objects of type boot

2007-08-24 Thread Sebastian Meyer
I am using the function boot (library boot) to calculate bootstrap distributions of parameters describing population dynamics. In rare occasions the resampling can produce invalid values (caused by a division by zero). These values have no biological importance and it seems like I have to

Re: [R] ordered factors in data.frame

2007-08-24 Thread Birgit Lemcke
Thanks a lot Greg for your help. This works fine. Normally I use a vector to set the classes for the variables: Classe-cclasses - c(rep(factor, 14), rep(numeric, 4)) Table1-read.table(Name, sep = ;, colClasses = Classe) How can I implement to set colClasses as ordererd factor here. Following

Re: [R] Forall symbol with plotmath/grid

2007-08-24 Thread Paul Murrell
Hi Michael Hoffman wrote: I am trying to get the forall symbol (upside down A) as part of the label of a lattice plot. Is there an easy way to do this? It is easy enough to produce a forall on its own ... library(grid) grid.text(\042, gp=gpar(fontfamily=symbol)) ... but combining that

Re: [R] changing text direction of mtext

2007-08-24 Thread Matthew Walker
Perhaps then you would rather use the axis() command? Say you wanted the text hello to be placed at y=0.5, then you might try par(las=1) axis(side=2, at=0.5, label=hello) Cheers, Matthew squall44 wrote: Thanks for your answers, Matthew and Uwe. I used... par(las=1) mtext(side=2)

[R] as.numeric : what goes wrong?

2007-08-24 Thread Wolfgang Polasek
I have a character vector j1 created from dimnames and want it to convert it to numeric. Like the first element: j1[1] f896 1 896 as.numeric(j1[1]) [1] 1990 why is it not 896 as it should be? This is true fr the whole vector. Thanks W.P. [[alternative HTML version deleted]]

Re: [R] How to merge string to DF

2007-08-24 Thread Stephen Tucker
This seems to work: tmp - aggregate(DF$y, list(DF$x, DF$f), mean) tmp2 - aggregate(DF$conc, list(DF$x, DF$f), paste,collapse=, ) names(tmp2)[3] - var1 final - merge(tmp,tmp2) --- Lauri Nikkinen [EMAIL PROTECTED] wrote: #Hi R-users, #I have an example DF like this: y1 - rnorm(10) + 6.8

Re: [R] How to shade vertical bands in a graph?

2007-08-24 Thread Jim Lemon
del pes wrote: Hello, I would like to draw vertical yellow bands in my graph, but could not find how to do that in the documentation. I set up a page to show what I would like to achieve: http://rstudent.blogg.de/eintrag.php?id=1 (the first picture was manually colored with the Gimp).

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Antje
Hi Paul, You are getting the error because you are setting the figure region to be larger than the current device (typically 6 or 7 inches wide/high). You SHOULD be getting the error when you try par(fin), BUT there is a check missing in the C code, so what happens is that heatmap saves

[R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Ronaldo Reis Junior
Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed ..., etc. It is possible? How? Thanks Ronaldo -- Acalme-se, são somente 0's e 1's -- Prof. Ronaldo Reis

[R] Est of SE of coefficients from lm() function

2007-08-24 Thread Arun Kumar Saha
Dear all R users, Can anyone tell me how I can get estimate of SE of coefficients from, lm() function? I tried following : x = 1:10 lm(x[-1]~x[-10]-1)$coefficients Here I got the est. of coefficient, however I also want to get some automated way to get estimate of SE. Regards,

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Alberto Monteiro
Ronaldo Reis Junior wrote: It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed ..., etc. It is possible? How? ?system BTW, I found that using things

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Henrique Dallazuanna
Hi, see ?system -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40 S 49° 16' 22 O On 24/08/07, Ronaldo Reis Junior [EMAIL PROTECTED] wrote: Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R.

Re: [R] as.numeric : what goes wrong?

2007-08-24 Thread Uwe Ligges
Wolfgang Polasek wrote: I have a character vector j1 created from dimnames and want it to convert it to numeric. Like the first element: j1[1] f896 1 896 Probably this is a factor? as.numeric(j1[1]) [1] 1990 And this is the number the factor level 896 has been coded with.

Re: [R] How to shade vertical bands in a graph?

2007-08-24 Thread John Kane
?rect Something like this should work but I did not take the time to get the rectangles to fit properly. aa - rnorm(25) yl - -1.5 yh - 2.2 xleft - c(4, 9, 15 ,20) xright - xleft + 3 plot(aa, ylim= c(yl,yh), type=n) rect(xleft, yl, xright,yh, col=yellow) points(aa, col=red) --- del pes [EMAIL

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Paul Murrell
Hi Antje wrote: There is no one who could help me with this? Antje schrieb: Hello, I have two questions. I'd like to visualize data with a heatmap and I have the following testcase: x - rnorm(256) nx - x + abs(min(x)) nnx - 255/max(nx) * nx x - matrix(nnx, 16, 16) rownames(x) -

Re: [R] How to shade vertical bands in a graph?

2007-08-24 Thread Gabor Grothendieck
There is an example using classic graphics here: http://www.mayin.org/ajayshah/KB/R/html/g5.html and one using lattice graphics here: library(zoo) ?xyplot.zoo On 8/23/07, del pes [EMAIL PROTECTED] wrote: Hello, I would like to draw vertical yellow bands in my graph, but could not

Re: [R] Est of SE of coefficients from lm() function

2007-08-24 Thread Chuck Cleland
Arun Kumar Saha wrote: Dear all R users, Can anyone tell me how I can get estimate of SE of coefficients from, lm() function? I tried following : x = 1:10 lm(x[-1]~x[-10]-1)$coefficients Here I got the est. of coefficient, however I also want to get some automated way to get

Re: [R] Est of SE of coefficients from lm() function

2007-08-24 Thread Achim Zeileis
On Fri, 24 Aug 2007, Arun Kumar Saha wrote: Dear all R users, Can anyone tell me how I can get estimate of SE of coefficients from, lm() function? The vcov() function extracts the estimated covariance matrix: fm - lm(...) vcov(fm) Thus, you can get the ESE via sqrt(diag(vcov(fm)))

Re: [R] figure-definition and heatmap question

2007-08-24 Thread Paul Murrell
Hi Antje wrote: Hi Paul, You are getting the error because you are setting the figure region to be larger than the current device (typically 6 or 7 inches wide/high). You SHOULD be getting the error when you try par(fin), BUT there is a check missing in the C code, so what happens

[R] Rows overlappes each other

2007-08-24 Thread juliocnunes
__ R-help@stat.math.ethz.ch 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.

Re: [R] as.numeric : what goes wrong?

2007-08-24 Thread jim holtman
Do an 'str' on the vector. Are you sure it is not a 'factor'? Try: as.numeric(as.character(j1[1])) On 8/24/07, Wolfgang Polasek [EMAIL PROTECTED] wrote: I have a character vector j1 created from dimnames and want it to convert it to numeric. Like the first element: j1[1] f896 1 896

[R] Rows overlapped each other

2007-08-24 Thread juliocnunes
You might help me...I have shrunk the row captions which were so big they overlapped each other. The relevant options are cexRow and cexCol. But I tried this option without success in this code bellow: library(Heatplus); FieldSeparator= ; file='Hs.txt'; data-read.table(file, header=TRUE,

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Duncan Murdoch
On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed ..., etc. The details and available functions depend

Re: [R] Applying a function to an array

2007-08-24 Thread Henrique Dallazuanna
Hi, apply(aperm(a), 2, sd) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40 S 49° 16' 22 O On 24/08/07, Florent Bresson [EMAIL PROTECTED] wrote: Dear R-users, I would like to apply a function (more precisely sd()) over the third dimension of a three-dimension array. The function

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Duncan Murdoch
On 8/24/2007 8:05 AM, Alberto Monteiro wrote: Ronaldo Reis Junior wrote: It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed ..., etc. It is possible? How?

[R] Saving results from Linux command line

2007-08-24 Thread Muenchen, Robert A (Bob)
Hi All, I'm used to running R on Windows learning Linux. I know ESS is the way to go in the long run, but I'm trying now to just understand the command line. I can interactively enter commands, see the results on the screen and save input output to myresults.txt with this approach: $script

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Gabor Grothendieck
What OS was that on? On 8/24/07, Alberto Monteiro [EMAIL PROTECTED] wrote: Ronaldo Reis Junior wrote: It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png fig01.xpm or sed

Re: [R] Calculating diameters of cirkels in a picture.

2007-08-24 Thread Bio7
Hello Bart! I took your picture and analysed it with ImageJ. You can do a particle analysis with the image which measures the required diameter. I used the Find Edges method Process-Find Edges and then adjusted the Brightness/Contrast/maximum Image-Adjust-Brightness/Contrast. After this i

[R] Rows overlapped each other

2007-08-24 Thread juliocnunes
You might help me...I have shrunk the row captions which were so big they overlapped each other. The relevant options are cexRow and cexCol. But I tried this option without success in this code bellow: library(Heatplus); FieldSeparator= ; file='Hs.txt'; data-read.table(file, header=TRUE,

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Alberto Monteiro
Gabor Grothendieck wrote: What OS was that on? I suppose you are asking me :-) BTW, I found that using things directly in R is _much_ slower than creating a batch file and then running it. For example, I had a directory with misnamed mp3 files, and I wanted to use R to rename and copy

[R] rounding to next lowest/highest 'x%%y' (mod) equals zero?

2007-08-24 Thread Johannes Graumann
Dear smart ones, Image a vector 'test' that looks like so: 0 0.5 1.5 2.1 3.1 4 I'm looking for an efficient function that would do something like moddown - function(test,integer){ for (element %in% test){ if (element%%integer != 0) { return next lowest integer for which '%%'

Re: [R] Saving results from Linux command line

2007-08-24 Thread Richard M. Heiberger
Go for the best and do it with ESS. ESS understands the file extension myfile.rt (not myfile.txt, which is generic) as an R transcript and therefore font-locks it for the R syntax and is able to resend multiple-line statements with a single ENTER. Within emacs, you can save the *R* buffer to a

Re: [R] Applying a function to an array

2007-08-24 Thread Tsjerk Wassenaar
Hi, Alternatively: apply( a, c(1,2), sd ) Cheers, Tsjerk On 8/24/07, Florent Bresson [EMAIL PROTECTED] wrote: Dear R-users, I would like to apply a function (more precisely sd()) over the third dimension of a three-dimension array. The function apply would be interesting but the chosen

[R] Merging two files together in R

2007-08-24 Thread Morassa Mohseni
Hi, Thanks in advance for reading this post. I received some affymetrix genotyping data back recently (250K, Nsp array)…However, in order for me to do any analysis on this data set, I need to add append the annotation file to it. Basically I want to do something that looks like this:

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Dirk Eddelbuettel
On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands inside to R. Somethink like: convert fig01.png

Re: [R] rounding to next lowest/highest 'x%%y' (mod) equals zero?

2007-08-24 Thread Richard M. Heiberger
tmp - c(0,.5,1.5,2.1,3.1,4) floor(tmp/2) [1] 0 0 0 1 1 2 floor(tmp/2)*2 [1] 0 0 0 2 2 4 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Duncan Murdoch
On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell commands

Re: [R] Merging two files together in R

2007-08-24 Thread john seers \(IFR\)
Try looking at ?merge If your data is in two dataframes df1 and df2: merge(df1, df2) (This will merge on SNPID because that column is common to both dataframes). --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Morassa Mohseni Sent: 24 August

Re: [R] Merging two files together in R

2007-08-24 Thread Morassa Mohseni
Thanks! Ill give this a try. I forgot to mention that the SNP.ID is not named the same in both files, even though they contain the same information. I'll just go ahead and open one of the files in a text editor and rename the columns so they match. -Morassa PhD Student Johns Hopkins Human Genetics

Re: [R] rounding to next lowest/highest 'x%%y' (mod) equals zero?

2007-08-24 Thread Johannes Graumann
Richard M. Heiberger wrote: tmp - c(0,.5,1.5,2.1,3.1,4) floor(tmp/2) [1] 0 0 0 1 1 2 floor(tmp/2)*2 [1] 0 0 0 2 2 4 Thanks so much! Joh __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Dirk Eddelbuettel
On Fri, Aug 24, 2007 at 10:57:46AM -0400, Duncan Murdoch wrote: On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is possible to use a shell command inside a R script?

Re: [R] Merging two files together in R

2007-08-24 Thread Henrique Dallazuanna
Hi, merge(df.x, df.y, by.x=1) where df.x is your Snpfile and df.y is Annotation file. -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40 S 49° 16' 22 O On 24/08/07, Morassa Mohseni [EMAIL PROTECTED] wrote: Hi, Thanks in advance for reading this post. I received some affymetrix

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Gabor Grothendieck
On 8/24/07, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is possible to use a shell command inside a R script? I'm write a R script and I like to put somes shell

Re: [R] uneven list to matrix

2007-08-24 Thread Bert Gunter
It can be done straightforwardly -- don't know about efficientcy -- without recourse to zoo or merge: ## example data x- 1:5 names(x) - letters[1:5] alph - list( x[1:4], x[c(1,3,4)],x[c(1,4,5)]) ## Solution rn - unique(unlist(sapply(alph,names))) mx - matrix( nr=length(rn),

Re: [R] uneven list to matrix

2007-08-24 Thread hadley wickham
On 8/23/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: Here are two solutions. The first repeatedly uses merge and the second creates a zoo object from each alph component whose time index consists of the row labels and uses zoo's multiway merge to merge them. # test data m - matrix(1:5,

[R] Sweave and TexnicCenter

2007-08-24 Thread Werner Wernersen
Hi, I started using Sweave and it's really great. I have only a minor problem: Is anybody using Sweave together with TexnicCenter and has found out how to get the syntax coloring right? After a $ in the code chunk the coloring stays in math mode. Thanks and kind regards, Werner

[R] problem loading package 'gplots'

2007-08-24 Thread Erin Berryman
Dear R community, I am using R version 2.4.1 GUI 1.18 on an iBook G4 with OS 10.4.10. When I try to load package 'gplots' I get the following message: library(gplots) Loading required package: gdata Attaching package: 'gdata' The following object(s) are masked _by_ .GlobalEnv :

Re: [R] Exact Confidence Intervals for the Ration of Two Binomial

2007-08-24 Thread Michael Dewey
At 18:28 23/08/2007, [EMAIL PROTECTED] wrote: Hello everyone, I will like to know if there is an R package to compute exact confidence intervals for the ratio of two binomial proportions. If you go to https://www.stat.math.ethz.ch/pipermail/r-help//2006-November/thread.html and search that part

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Gabor Grothendieck
On 8/24/07, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On Fri, Aug 24, 2007 at 10:57:46AM -0400, Duncan Murdoch wrote: On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi,

[R] randomForest help

2007-08-24 Thread Jennifer Dawn Watts
Hello! As a new R user, I'm sure this will be a silly question for the rest of you. I've been able to successfully run a forest but yet to figure out proper command lines for the following: 1. saving the forest. The guide just says isavef=1. I'm unsure how expand on this to create the

[R] Using odfWeave to Produce Tables with Right-aligned Cells

2007-08-24 Thread Rick Bilonick
I cannot figure out how to use odfWeave to produce tables eith right-aligned columns. None of the examples show this and I'm completely confused on how to achieve this. Could someone share a simple example? Rick B. __ R-help@stat.math.ethz.ch mailing

[R] Using odfWeave to Produce Tables with Right-aligned Cells

2007-08-24 Thread Rick Bilonick
I cannot figure out how to use odfWeave to produce tables with right-aligned columns. None of the examples show this and I'm completely confused on how to achieve this. Could someone share a simple example? Rick B. __ R-help@stat.math.ethz.ch mailing

[R] perception of graphical data

2007-08-24 Thread Yeh, Richard C
Hello, I apologize that this is off-topic. I am seeking information on perception of graphical data, in an effort to improve the plots I produce. Would anyone point me to literature reviews in this area? (Or keywords to try on google?) Is this located somewhere near cognitive science,

Re: [R] Saving results from Linux command line

2007-08-24 Thread Muenchen, Robert A (Bob)
I certainly appreciate those advantages, but I feel I'm missing something very basic. I would have expected a function like save.transcript or save.console to be able to write out the console's contents. I see a similar situation in the Windows GUI. There is the menu choice Save Workspace and the

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Duncan Murdoch
On 8/24/2007 1:05 PM, Gabor Grothendieck wrote: On 8/24/07, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On Fri, Aug 24, 2007 at 10:57:46AM -0400, Duncan Murdoch wrote: On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On

Re: [R] perception of graphical data

2007-08-24 Thread roger koenker
You might want to look at the cartogram literature. See e.g. http://www-personal.umich.edu/~mejn/election/ I don't know of an R implementation of this sort of thing, but perhaps others can correct me. url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]

Re: [R] Using odfWeave to Produce Tables with Right-aligned Cells

2007-08-24 Thread Kuhn, Max
Rick, First, please send the results of SessionInfo so I know exactly what versions you are using. Also, are you using OpenOffice? If so, what version? If you use the current version of odfWeave, there is a file with many details about formatting in the examples subdirectory. Here is what I

Re: [R] Saving results from Linux command line

2007-08-24 Thread Richard M. Heiberger
There can't be functions in the R language to save the transcript of a session. In this respect R is a filter. It takes an input stream of text and returns an output stream of text. R doesn't remember the streams. The Windows RGui remembers them. The ESS *R* buffer remembers them. Any

Re: [R] perception of graphical data

2007-08-24 Thread David James
Hi, You may want to check chapter 4 (Graphical Perception) in W. S. Cleveland (1985?) The Elements of Graphing Data and the references he includes. Regards, -- David On 8/24/07, Yeh, Richard C [EMAIL PROTECTED] wrote: Hello, I apologize that this is off-topic. I am seeking information on

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Duncan Murdoch
On 8/24/2007 11:14 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 10:57:46AM -0400, Duncan Murdoch wrote: On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007 at 08:32:00AM -0400, Duncan Murdoch wrote: On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: Hi, It is

Re: [R] Saving results from Linux command line

2007-08-24 Thread Muenchen, Robert A (Bob)
I looked long and hard for that information. Thank you VERY much! -Bob -Original Message- From: Richard M. Heiberger [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 1:52 PM To: Muenchen, Robert A (Bob); r-help@stat.math.ethz.ch Subject: Re: [R] Saving results from Linux

Re: [R] Using odfWeave to Produce Tables with Right-aligned Cells

2007-08-24 Thread Kuhn, Max
It appears to be an OpenOffice bug: http://www.openoffice.org/issues/show_bug.cgi?id=73163 Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kuhn, Max Sent: Friday, August 24, 2007 1:52 PM To: Rick Bilonick; R Help Subject: Re: [R] Using odfWeave

Re: [R] Saving results from Linux command line

2007-08-24 Thread Thomas Lumley
There could still be functions that divert a copy of all the output to a file, for example. And indeed there are. sink(transcript.txt, split=TRUE) -thomas On Fri, 24 Aug 2007, Muenchen, Robert A (Bob) wrote: I looked long and hard for that information. Thank you VERY much! -Bob

Re: [R] perception of graphical data

2007-08-24 Thread John Fox
Dear Richard, Though slightly dated, the following article is a nice summary of the literature on graphical perception: Lewandowsky, S Spence, I. (1989) The perception of statistical graphs. Sociological Methods and Research, 18, 200-242. I hope this helps, John On Fri, 24 Aug 2007 13:30:56

[R] Adding new points to a metaMDS ordination (vegan pkg)

2007-08-24 Thread Simon Goring
Hi, I've been using R for a while now but I've got a problem with metaMDS (in the vegan package) that I can't quite figure out. I have a set of proportion data (from 0-1, rows sum to 1) that I apply metaMDS to using the command:

[R] Variable Importance - Random Forest

2007-08-24 Thread Mathe, Ewy (NIH/NCI) [F]
Hello, I am trying to explore the use of random forests for classification and am certain about the interpretation of the importance measurements. When having the option importance = T in the randomForest call, the resulting 'importance' element matrix has four columns with the following

[R] An issue with White's test in Anova

2007-08-24 Thread David Kaplan
Hi all, I'm running White's test to correct for non-constant error variance and I am using the Anova function in the package CAR. My command structure is Anova(scireg3, white.adjust=hc3) where scireg3 is an object from lm. I get the message Error in SS[i] - SS.term(names[i]) : nothing to

Re: [R] Saving results from Linux command line

2007-08-24 Thread Muenchen, Robert A (Bob)
As the help files says, ...like the Unix program tee. I thought sink only diverted to a file. Thanks! -Bob -Original Message- From: Thomas Lumley [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 2:17 PM To: Muenchen, Robert A (Bob) Cc: r-help@stat.math.ethz.ch Subject: Re:

Re: [R] It is possible to use a Shell command inside a R script?

2007-08-24 Thread Gabor Grothendieck
On 8/24/07, Duncan Murdoch [EMAIL PROTECTED] wrote: On 8/24/2007 1:05 PM, Gabor Grothendieck wrote: On 8/24/07, Dirk Eddelbuettel [EMAIL PROTECTED] wrote: On Fri, Aug 24, 2007 at 10:57:46AM -0400, Duncan Murdoch wrote: On 8/24/2007 10:33 AM, Dirk Eddelbuettel wrote: On Fri, Aug 24, 2007

[R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread Leeds, Mark \(IED\)
I have the code below which gives me what I want for temp based on logvec but I was wondering if there was a shorter way ( i.e : a one liner ) without having to initialize temp to zeros. This is purely for learning purposes. Thanks. logvec - c(TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,FALSE)

Re: [R] Turning a logical vector into its indices without losing itslength

2007-08-24 Thread Leeds, Mark \(IED\)
There's a typo in my previous message. logvec should be invec. sorry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leeds, Mark (IED) Sent: Friday, August 24, 2007 5:12 PM To: r-help@stat.math.ethz.ch Subject: [R] Turning a logical vector into its

Re: [R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread Achim Zeileis
On Fri, 24 Aug 2007, Leeds, Mark (IED) wrote: I have the code below which gives me what I want for temp based on logvec but I was wondering if there was a shorter way ( i.e : a one liner ) without having to initialize temp to zeros. This is purely for learning purposes. Thanks. logvec -

Re: [R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread Gabor Grothendieck
On 8/24/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: Here are two solutions: logvec - c(TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,FALSE) ifelse(logvec, seq_along(logvec), 0) [1] 1 0 0 4 0 0 7 0 replace(logvec * 0, logvec, which(logvec)) [1] 1 0 0 4 0 0 7 0 Actually the * 0 is not

Re: [R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread Gabor Grothendieck
Here are two solutions: logvec - c(TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,FALSE) ifelse(logvec, seq_along(logvec), 0) [1] 1 0 0 4 0 0 7 0 replace(logvec * 0, logvec, which(logvec)) [1] 1 0 0 4 0 0 7 0 On 8/24/07, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: I have the code below which gives

Re: [R] problem loading package 'gplots'

2007-08-24 Thread Gregory Warnes
Hi Erin, Since the error occurs during the loading of the gtools package, I would suggest upgrading to a newer version of gtools to see if this solves your problem. -G On Aug 24, 2007, at 12:49PM , Erin Berryman wrote: Dear R community, I am using R version 2.4.1 GUI 1.18 on an iBook G4

Re: [R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread François Pinard
[Leeds, Mark (IED)] I have the code below which gives me what I want for temp based on invec but I was wondering if there was a shorter way ( i.e : a one liner ) without having to initialize temp to zeros. This is ppurely for learning purposes. Thanks. invec -

[R] Random number expert needed

2007-08-24 Thread Frank E Harrell Jr
Colleagues: An agency contacted me that has need of a true expert in pseudo random number generation who can perform an audit of a system currently in use. If you live within say 400 miles of Nashville TN and have in-depth expertise, please contact me and I will put you in touch with the

Re: [R] perception of graphical data

2007-08-24 Thread hadley wickham
Hi Richard, I apologize that this is off-topic. I am seeking information on perception of graphical data, in an effort to improve the plots I produce. Would anyone point me to literature reviews in this area? (Or keywords to try on google?) Is this located somewhere near cognitive

Re: [R] An issue with White's test in Anova

2007-08-24 Thread John Fox
Dear David, You've found a bug in Anova() for linear models that was introduced some time ago when the linear.hypothesis() function [which is used by Anova()] was modified not to report sums of squares for White-adjusted tests. I have to think about should be done in this case. Sorry, John

Re: [R] problem loading package 'gplots'

2007-08-24 Thread Erin Berryman
Thank you, but the version of 'gtools' I have is 2.3.1, which is the same as the current version in the repository. Is there a more recent version out there? Erin On Aug 24, 2007, at 2:51 PM, Gregory Warnes wrote: Hi Erin, Since the error occurs during the loading of the gtools package,

Re: [R] Merging two files together in R

2007-08-24 Thread Adaikalavan Ramasamy
Not neccessary to do this as you can specify which column in the two datases to use as common using the arguments by.x and by.y in merge(). Morassa Mohseni wrote: Thanks! Ill give this a try. I forgot to mention that the SNP.ID is not named the same in both files, even though they contain

Re: [R] Turning a logical vector into its indices without losing its length

2007-08-24 Thread Gabor Grothendieck
On 8/24/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 8/24/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: Here are two solutions: logvec - c(TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,TRUE,FALSE) ifelse(logvec, seq_along(logvec), 0) [1] 1 0 0 4 0 0 7 0 replace(logvec * 0, logvec,

Re: [R] problem loading package 'gplots'

2007-08-24 Thread Erin Berryman
Thank you! That did the trick. Package 'gplots' is now running properly on my machine. Erin On Aug 24, 2007, at 7:57 PM, Gregory Warnes wrote: On Aug 24, 2007, at 9:47PM , Erin Berryman wrote: library(gplots) Error in lazyLoadDBfetch(key, datafile, compressed, envhook) :