Re: [R] How to create a graph layout?

2009-04-26 Thread Sarah Goslee
For base graphics, you can do it with par - specifically mfrow or mfcol par(mfrow=c(3,3)). Depending on exactly what you want, you might also wish to look into axis(). For fancier set-ups, the lattice package provides many options. Sarah On Sun, Apr 26, 2009 at 8:32 PM, Christian Bustamante

Re: [R] how to inspect content of save() file

2009-04-26 Thread Benno Pütz
Am 22.Apr.2009 um 21:45 schrieb Duncan Temple Lang: Hi Benno et al. I have had some code for reading RDA files via R functions and binary connections. It is available from http://www.omegahat.org/RDA or install.packages(RDA, repos = http://www.omegahat.org/R;,

[R] Unable to re-import a table that was just exported to a file

2009-04-26 Thread Nigel Birney
Hi all, I am saving a program's output to a file to be read by another algorithm. But somehow such a simple operation (the reading) fails. I get: Error in read.table(a_corr_data.txt, sep = ,, col.names = T, row.names = F) : more columns than column names Here is the write statement:

[R] Flipping axes of qqnorm

2009-04-26 Thread Chris_d
Hi all, I have just started using R to produce qqnorm plots. I am trying to switch the x and y axes so that the theoretical values are plotted on the y axis and my data on the x axis. Can anyone help me with this? Thanks -- View this message in context:

[R] Cannot clean infinite values

2009-04-26 Thread Nigel Birney
Hello all, I have to import numeric data from file but found it contains Infinite values which need to be eliminated. I tried to replace them in this way: data[which(data==-Inf)] - -0.3 data[which(data==+Inf)] - 0.3 But, somehow, the Infinite values stayed there. Any

Re: [R] Flipping axes of qqnorm

2009-04-26 Thread Sundar Dorai-Raj
Try (re)reading ?qqnorm. Use datax = TRUE. --sundar On Sun, Apr 26, 2009 at 4:37 PM, Chris_d dewhurstch...@gmail.com wrote: Hi all,       I have just started using R to produce qqnorm plots. I am trying to switch the x and y axes so that the theoretical values are plotted on the y axis and

Re: [R] Cannot clean infinite values

2009-04-26 Thread Charles Annis, P.E.
?is.infinite Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nigel Birney Sent: Sunday,

Re: [R] Cannot clean infinite values

2009-04-26 Thread Sundar Dorai-Raj
Use ?is.infinite inf - is.infinite(data) data[inf] - 0.3 * sign(data[inf]) On Sun, Apr 26, 2009 at 5:44 PM, Nigel Birney na...@cam.ac.uk wrote: Hello all, I have to import numeric data from file but found it contains Infinite values which need to be eliminated. I tried to replace them in

Re: [R] Flipping axes of qqnorm

2009-04-26 Thread Charles Annis, P.E.
?qqnorm qqnorm(y, ylim, main = Normal Q-Q Plot, xlab = Theoretical Quantiles, ylab = Sample Quantiles, plot.it = TRUE, datax = TRUE, ...) Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] Cannot clean infinite values

2009-04-26 Thread Ben Bolker
Nigel Birney wrote: Hello all, I have to import numeric data from file but found it contains Infinite values which need to be eliminated. I tried to replace them in this way: data[which(data==-Inf)] - -0.3 data[which(data==+Inf)] - 0.3 But, somehow, the Infinite

Re: [R] Plotting polynomial fit

2009-04-26 Thread David Winsemius
On Apr 26, 2009, at 8:40 PM, Ronnen Levinson wrote: 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 -

Re: [R] Memory issues in R

2009-04-26 Thread Ben Bolker
Neotropical bat risk assessments wrote: How do people deal with R and memory issues? I have tried using gc() to see how much memory is used at each step. Scanned Crawley R-Book and all other R books I have available and the FAQ on-line but no help really found. Running

<    1   2