[R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
Dear all, I am trying to plot 4 different plots in the same figure using par(mfrow=...) and igraph::plot.igraph. The code below reproduces more or less what I am doing: library(igraph) g-erdos.renyi.game(30,0.4) x-1:100; par(mfrow=c(2,2)) hist(degree(g),main=A);

Re: [R] suggestion of regex pattern

2015-04-18 Thread Boris Steipe
This is not a regular expression but simply a conjunction (sequence of '') of logical expressions. Moreover it's not wrong. Consider: xyz - data.frame(municipio = c('Limeira'), mesincident = c('marco'), trechoklmetros = c(3.00, -4.00, 30)) xyz municipio mesincident trechoklmetros 1 Limeira

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread Dirk Eddelbuettel
On 18 April 2015 at 05:29, John Kane wrote: | I think it moved to http://rgraphgallery.blogspot.com/ with a different interface. I don't think so. Something I contributed years ago to the original Graph Gallery is not on this site. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel |

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread John Kane
I thought I'd read about a migration. Well so much for memory. John Kane Kingston ON Canada -Original Message- From: e...@debian.org Sent: Sat, 18 Apr 2015 09:16:44 -0500 To: jrkrid...@inbox.com Subject: Re: [R] Where is the R Graph Gallery? On 18 April 2015 at 05:29, John

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
Dear Boris, Thank you for your message! I had experienced exactly what you describe in your message. I just didn't write in my previous message in order to avoid a long message :) I will definitely file a bug report to Igraph. Thanks for your suggestion. In the meanwhile, I will try the first

[R] Where is the R Graph Gallery?

2015-04-18 Thread Jinsong Zhao
Hi there, Does anyone here know where does the R Graph Gallery (http://addictedtor.free.fr/graphiques/) move to? I googled, but don't find any useful hints. Any help? Thanks in advance! Best, Jinsong __ R-help@r-project.org mailing list -- To

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread Dirk Eddelbuettel
On 18 April 2015 at 20:10, Jinsong Zhao wrote: | Does anyone here know where does the R Graph Gallery | (http://addictedtor.free.fr/graphiques/) move to? I googled, but don't | find any useful hints. It went down due to (IIRC) hardware failure. It was said that it would come back. That was a

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Boris Steipe
I can reproduce your problem. It affects both sine-waves if the graph is plotted as the second plot, so it seems that plotting the graph affects all subsequent plots. It affects all plots in subsequent plots to the same window. The window needs to be closed to correct this. I would file a bug

[R] suggestion of regex pattern

2015-04-18 Thread Fernando Gama
Hello, I have benn problems to construct the pattern for this: municipio =='Limeira' mesincident =='marco' trechoklmetros 1.00 12.300 I would like: municipio =='Limeira' mesincident =='marco' trechoklmetros 1.00 * **trechoklmetros = *12.300 ​ ​Any suggestion?​ -- Att, Fernando Gama

Re: [R] Need online version of R help pages

2015-04-18 Thread Michael Dewey
I am not sure how helpful this is going to be but Appendix C7 in the Installation and Administration manual is pretty bleak about your prospects with Cygwin. On 18/04/2015 02:17, Paul Domaskis wrote: With all due respect, Duncan, I can't find the message advising against using the Cygwin

Re: [R] suggestion of regex pattern

2015-04-18 Thread Fernando Gama
Hello Boris, thanks for your response. So, firstly considered that i've been input a set of serches strings (.txt format) and i'm using regex to transform in a suitable format to my script. This part is a final part of my code and i wish putting in input to a subset. (.txt formatted)

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread John Kane
I think it moved to http://rgraphgallery.blogspot.com/ with a different interface. John Kane Kingston ON Canada -Original Message- From: jsz...@yeah.net Sent: Sat, 18 Apr 2015 20:10:50 +0800 To: r-help@r-project.org Subject: [R] Where is the R Graph Gallery? Hi there, Does

Re: [R] Programming R to avoid loops

2015-04-18 Thread Jeff Newmiller
Oh, great. An app [1] that introduces me too emails with a click and uses HTML to tell us all about it. Jim, this is probably not a good place to use that function. Read the posting guide about mailing list nettiquette. [1]

[R] xtractomatic package

2015-04-18 Thread Roy Mendelssohn - NOAA Federal
xtractomatic R package for accessing environmental data xtractomatic is an R package developed to subset and extract satellite and other oceanographic related data from a remote server. The program can extract data for a moving point in time along a user-supplied set of longitude, latitude and

Re: [R] Smart detection of wrap width?

2015-04-18 Thread Ista Zahn
For ESS see https://github.com/gaborcsardi/dot-emacs/blob/master/.emacs Best, Ista On Apr 17, 2015 7:37 PM, Paul Domaskis paul.domas...@gmail.com wrote: Yes, I found the width option in the help pages, but I was wondering if there was automatic setting of the wrapping according to the

Re: [R] Programming R to avoid loops

2015-04-18 Thread Jim Mankin
Jim Mankin liked your message with Boxer. On April 18, 2015 at 10:48:17 AM MST, Charles C. Berry ccbe...@ucsd.edu wrote:On Sat, 18 Apr 2015, Brant Inman wrote: I have two large data frames with the following structure: df1 id date test1.result 1 a 2009-08-28 1 2 a 2009-09-16 1 3 b 2008-08-06 0

[R] basic q re: parsing functions, declaration order

2015-04-18 Thread Gowder, Paul
Hi there, So I’m doing some serious coding in R for the first time—writing a strategic simulation to run for a few (or many) thousand iterations,* and doing so in proper functional programming form, i.e., with a bunch of wrapper functions calling other wrapper functions calling the stuff that

[R] Error en `*tmp*`[[i]] : subíndice fuera de los límites

2015-04-18 Thread ana santos gómez
I get this error when I try to execute the following order: repressed.genes.KO.WT.table - aafTableAnn(repressed.genes.KO.WT, mouse4302.db, aaf.handler()) I execute the same instruction with other circumstances such as activated genes and I don't get that error. How can I solutionate this?

Re: [R] Problems combining two plots using par(mfrow=)

2015-04-18 Thread Charles Novaes de Santana
Just open this issue: https://github.com/igraph/rigraph/issues/69 Thanks again for your suggestion! Best, Charles On Sat, Apr 18, 2015 at 5:28 PM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear Boris, Thank you for your message! I had experienced exactly what you describe

Re: [R] Programming R to avoid loops

2015-04-18 Thread Charles C. Berry
On Sat, 18 Apr 2015, Brant Inman wrote: I have two large data frames with the following structure: df1 id date test1.result 1 a 2009-08-28 1 2 a 2009-09-16 1 3 b 2008-08-06 0 4 c 2012-02-02 1 5 c 2010-08-03 1 6 c 2012-08-02 0 df2 id date

Re: [R] suggestion of regex pattern

2015-04-18 Thread Boris Steipe
Sorry - it's not entirely clear to me what you need to do. See here for some hints on how to ask questions on this list. I'm sure we'll be able to help quickly. http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example (and

Re: [R] basic q re: parsing functions, declaration order

2015-04-18 Thread Bert Gunter
1. You should read a suitable R tutorial before proceeding. Is it not advisable to learn a language's syntax before attempting to program in it? An Intro to R ships with R, but there are many others available on the Web. Choose that which suits. You may also wish to look at the R Language manual;

Re: [R] Where is the R Graph Gallery?

2015-04-18 Thread Jim Lemon
Hi all, http://rgraphgallery.blogspot.com/ contains much of what was on addictedtor, and if one wants to add more examples, it isn't too hard. Jim On Sun, Apr 19, 2015 at 12:39 AM, John Kane jrkrid...@inbox.com wrote: I thought I'd read about a migration. Well so much for memory. John Kane

[R] library(xlsx) fails with an error: Error: package ‘rJava’ could not be loaded

2015-04-18 Thread John Sorkin
Windows 7 64-bit R 3.1.3 RStudio 0.98.1103 I am having difficulty loading and installing the xlsx package. The loading occurred without any problem, however the library command library(xlsx) produced an error related to rJava. I tried to install rJava seperately, re-loaded the xlsx package, and

Re: [R] Smart detection of wrap width?

2015-04-18 Thread Peter Crowther
On Apr 17, 2015 7:37 PM, Paul Domaskis paul.domas...@gmail.com wrote: I don't suppose there is a way to have it automatically invoked when the window size/positition changes? Possibly, though it would take a little building. If you were to launch R directly when you start the xterm (loosely

Re: [R] Error en `*tmp*`[[i]] : subíndice fuera de los límites

2015-04-18 Thread Boris Steipe
You haven't provided nearly enough information for us to be able to help. Please see here for some hints on how to ask questions productively: http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example ... and please read the

Re: [R] suggestion of regex pattern

2015-04-18 Thread Boris Steipe
Re-reading your question and taking a wild guess, perhaps you are looking for parse() and eval() ... xyz - data.frame( a=c(1,2), b=c(3,4)) xyz a b 1 1 3 2 2 4 expp - parse(text=xyz$a 1 xyz$b == 4) # turn a string into an expression expp expression(xyz$a 1 xyz$b == 4) xyz[eval(expp),

Re: [R] basic q re: parsing functions, declaration order

2015-04-18 Thread Jeff Newmiller
You will eventually learn that scope in R is rather different than any of those other languages. However, if you don't think too hard about it, you should find it quite natural. So yes, you can call forward if you like to think of it that way. However, your reference to a mess of functions

[R-es] Como leer una BD con una estructura inadecuada

2015-04-18 Thread eric
Estimados, tengo el siguiente problema: Tengo una BD de 19 columnas y aprox 500 mil filas, la que tiene muchas celdas vacias y esta separada con espacios para hacer coincidir los datos bajo los encabezados. Mi problema es que al tratar de importar a R la BD no se como tratar con los

Re: [R-es] Como leer una BD con una estructura inadecuada

2015-04-18 Thread Javier Marcuzzi
Estimado Eric Concha Como usted dice, hay un problema, yo encontré inconvenientes al intentar importar los datos que usted suministro. Pero se me ocurre una pregunta ¿tiene usted acceso a la base de datos original? Porque si tiene acceso hay dos posibilidades, el acceso real donde usted puede

Re: [R] Smart detection of wrap width?

2015-04-18 Thread Ista Zahn
I see now that the link I gave for configuring this is ESS doesn't give the whole enchilada. Here is what I currently have in my emacs config: (defun my-ess-execute-screen-options (foo) (ess-execute-screen-options)) (add-hook 'inferior-ess-mode-hook (lambda()

Re: [R] Programming R to avoid loops

2015-04-18 Thread Jim Lemon
Hi Brant, I'm a bit confused about which data frame is the one to match to, but the following, while still including loops, should run much faster than the above as it only matches dates within id matches. df1-read.table(text=id date test1.result a 2009-08-28 1 a 2009-09-16 1 b