Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread PIKAL Petr
Hi It is probably time to consult documentation, including R-Intro. GGplot paradigm is that you have set of values (x,y) and factor variable(s) used for changing colour, size, plotting character or several other plot items. so something like pl <- ggplot(NewestdataULTRA, aes(x=x, y=value, colou

Re: [R] Open a file which name contains a tilde

2019-06-05 Thread Enrico Schumann
Quoting Frank Schwidom : On 2019-06-05 20:32:07, Enrico Schumann wrote: > "FS" == Frank Schwidom writes: FS> Hi, FS> As I can see via path.expand a filename which contains a FS> tilde anywhere gets automatically crippled. FS> +> path.expand("a ~ b") FS> [1] "a /h

[R] max size of a file that R can open to work

2019-06-05 Thread Ricardo Lopez
Hello, I´d like to ask you if the max size of a file that R can open or import to work depends of the memory RAM?? or has other restriction??? Thank you very much [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

Re: [R] Parallel processes collapse into one

2019-06-05 Thread Abby Spurdle
> I have written an R package to collect some functions to run simulations > for a research project. Main functions are written in C and make use of > BLAS routines, such as dsymm, dgemm, and ddot. I run simulations in > parallel by using mclapply and the problem is that after some point all R > in

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
Hi Rui (and everyone), Thank you so much for your response! Much appreciated! What if I wanted I create several regression lines and scatter plots in the same ggplot using a "melted" dataset? I would like to create a scatter plot and regression line for both the objects of "onepctCO2MEDIAN" and

Re: [R] Mac/PC differences in lmer results

2019-06-05 Thread John via R-help
On Wed, 29 May 2019 18:44:26 +0200 Nicolas Schuck wrote: > Dear fellow R coders, > > I am observing differences in results obtained using glmer when using > a Mac or Linux computer versus a PC Just as an aside and point of information, both the Mac and the Linux systems are PCs, just as m

Re: [R] Open a file which name contains a tilde

2019-06-05 Thread Frank Schwidom
On 2019-06-05 20:32:07, Enrico Schumann wrote: > > "FS" == Frank Schwidom writes: > > FS> Hi, > FS> As I can see via path.expand a filename which contains a tilde > anywhere gets automatically crippled. > > FS> +> path.expand("a ~ b") > FS> [1] "a /home/user b" > > FS> +>

Re: [R] Open a file which name contains a tilde

2019-06-05 Thread Frank Schwidom
On 2019-06-05 20:32:07, Enrico Schumann wrote: > > "FS" == Frank Schwidom writes: > > FS> Hi, > FS> As I can see via path.expand a filename which contains a tilde > anywhere gets automatically crippled. > > FS> +> path.expand("a ~ b") > FS> [1] "a /home/user b" > > FS> +>

Re: [R] Open a file which name contains a tilde

2019-06-05 Thread Enrico Schumann
> "FS" == Frank Schwidom writes: FS> Hi, FS> As I can see via path.expand a filename which contains a tilde anywhere gets automatically crippled. FS> +> path.expand("a ~ b") FS> [1] "a /home/user b" FS> +> path.expand("a ~ b ~") FS> [1] "a /home/user b /home/user"

Re: [R] Sample function and prob argument

2019-06-05 Thread Duncan Murdoch
On 05/06/2019 4:34 a.m., le Gleut, Ronan wrote: Dear R-help mailing list, First of all, many many thanks for your great work on the R project! I have a very small issue regarding the sample function. Depending if we specify values for the prob argument, we don't get the same result fo

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread David Winsemius
On 6/5/19 9:57 AM, David Winsemius wrote: On 6/5/19 9:37 AM, rain1...@aim.com wrote: Hi David (and everyone), Thank you for your response. I changed the column names to x and y, but the error/warning persists: Warning message: Computation failed in `stat_smooth()`: 'what' must be a function

Re: [R] Mac/PC differences in lmer results

2019-06-05 Thread Alexandra Thorn
To check whether the data are being read in appropriately, what happens when you plot the distribution of each of the independent variables on the respective systems? -A On Wed, 5 Jun 2019 12:32:28 +0200 Olivier Crouzet wrote: > Hi, > > 32bit vs. 64bit systems? > > Another thing I would look

[R] Sample function and prob argument

2019-06-05 Thread le Gleut, Ronan
Dear R-help mailing list, First of all, many many thanks for your great work on the R project! I have a very small issue regarding the sample function. Depending if we specify values for the prob argument, we don't get the same result for a random sampling with replacement and with equal pr

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread David Winsemius
On 6/5/19 9:37 AM, rain1...@aim.com wrote: > Hi David (and everyone), > > Thank you for your response. I changed the column names to x and y, > but the error/warning persists: > > Warning message: Computation failed in `stat_smooth()`: 'what' must be > a function or character string > > It is q

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
Hi David (and everyone), Thank you for your response. I changed the column names to x and y, but the error/warning persists: Warning message: Computation failed in `stat_smooth()`: 'what' must be a function or character string It is quite baffling as to why this is happening. Why would it work f

[R] Open a file which name contains a tilde

2019-06-05 Thread Frank Schwidom
Hi, As I can see via path.expand a filename which contains a tilde anywhere gets automatically crippled. +> path.expand("a ~ b") [1] "a /home/user b" +> path.expand("a ~ b ~") [1] "a /home/user b /home/user" I want to open a file regardless whether its name contains any character unless 0. T

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread David Winsemius
On 6/5/19 8:04 AM, rain1290--- via R-help wrote: Hi Jeff (and everyone), Thank you for your response and feedback. Yes, I know what you mean - it was a blind and quick choice to use "lm" as my object name. Unfortunately, changing the object name to something else does not eliminate that erro

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread Rui Barradas
Hello, And please don't cross post. You have asked both r-help@r-project.org and r-sig-...@r-project.org when you should have asked just one of them. This is a question for r-help@r-project.org Rui Barradas Às 15:52 de 05/06/19, Rui Barradas escreveu: Hello, This is pretty basic ggplot.

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
Hi Jeff (and everyone), Thank you for your response and feedback. Yes, I know what you mean - it was a blind and quick choice to use "lm" as my object name. Unfortunately, changing the object name to something else does not eliminate that error/warning message. As a result, the same error/warni

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread Rui Barradas
Hello, This is pretty basic ggplot. lm1 <- ggplot(onepctCO2MEDIAN, aes(x, y)) + geom_point(colour = 'blue') + geom_smooth(method = 'lm') lm1 If you want to combine several datasets, you will have to have a variable telling which dataset is which. In the example below, this is column 'i

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread Jeff Newmiller
Please read the Posting Guide... posting HTML on a plain text mailing list really interferes with clear communication. If you had spent even a small amount of time working with R tutorials then you would know that "lm" is the name of a very basic, very important R function. However, you are def

[R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
I am trying to plot, using ggplot, a series of scatter plots with regression lines for several datasets. I started with the following dataset, "onepectCO2MEDIAN". The data for this dataset is as follows:     onepctCO2MEDIAN     x  y     layer.1   0.0  0.000    

Re: [R] how to identify record with broken format

2019-06-05 Thread Boris Steipe
I've seen that behaviour with a C" atom in a chemical structure. Here is code to identify lines with an uneven number of quotation marks. Read your file with readLines() to use it. myTxt<- '"This" "is" "fine"' myTxt[2] <- '"This" "is "not"' myTxt[3] <- 'This is ok' x <- lengths(regmatches(

Re: [R] Mac/PC differences in lmer results

2019-06-05 Thread Olivier Crouzet
Hi, 32bit vs. 64bit systems? Another thing I would look at would be how the windows machine will read the data file. Though issues should probably only arise with respect to text data, I've often experienced problems with reading unicode csv files on windows computers compared with unix-based co

Re: [R] how to identify record with broken format

2019-06-05 Thread Duncan Murdoch
On 05/06/2019 6:12 a.m., Luigi Marongiu wrote: Dear all, I have a large dataframe where one of the records in a column must have been wrongly formatted, in particular i think is missing a closing ". When I try to show only that column's value I get a [1] with plenty of empty space, the final reco

Re: [R] Mac/PC differences in lmer results

2019-06-05 Thread Nicolas Schuck
bert: you are right, sorry for not cc-ing the list. thanks also for the hint. I wanted to bring this up here again, emphasising that we do find in at least one case *a very large difference* in the p value, using the same scripts and data on a windows versus mac machine (see reproducible exampl

Re: [R] How to generate mutiple set of samples in R?

2019-06-05 Thread PIKAL Petr
Hi Mayooran It is better to keep your mails on rhelp. Others could answer too. see in line > -Original Message- > From: m.thevar...@massey.ac.nz > Sent: Wednesday, June 5, 2019 11:55 AM > To: PIKAL Petr > Subject: Re: How to generate mutiple set of samples in R? > > Hello Petr >

[R] how to identify record with broken format

2019-06-05 Thread Luigi Marongiu
Dear all, I have a large dataframe where one of the records in a column must have been wrongly formatted, in particular i think is missing a closing ". When I try to show only that column's value I get a [1] with plenty of empty space, the final record [45] and the system freezes. also, when i try

Re: [R] How to generate mutiple set of samples in R?

2019-06-05 Thread PIKAL Petr
Hi Maybe ?sample within cycle? And collecting results in list. Cheers Petr > -Original Message- > From: R-help On Behalf Of Thevaraja, > Mayooran > Sent: Wednesday, June 5, 2019 4:38 AM > To: r-help@r-project.org > Subject: [R] How to generate mutiple set of samples in R? > > Hello > >

Re: [R] How to generate mutiple set of samples in R?

2019-06-05 Thread Enrico Schumann via R-help
> "MT" == Thevaraja, Mayooran writes: MT> Hello MT> I am trying to generate samples from a bulk set of number for my MT> research. So I need to get an output which contains various MT> collection of samples, for example, sample1, sample2, sample3, MT> Does anyone

Re: [R] Including a large number of variables in a formula.

2019-06-05 Thread peter dalgaard
Two ideas: nn <- names(wageszm14) lvadd <- nn[grep("^lvacb", nn)] or lvadd <- paste0("lvacb", 23:81) lvadd <- lvadd[lvadd %in% names(wageszm14)] > On 5 Jun 2019, at 06:46 , Rolando I. Valdez via R-help > wrote: > > Hello, > > I have almost 40 variables that I am trying to include in a formu

[R] Including a large number of variables in a formula.

2019-06-05 Thread Rolando I. Valdez via R-help
Hello, I have almost 40 variables that I am trying to include in a formula. I tried to include them using as.formula(), however the variables do not follow a patter in the name. e.g. These variables are named like: lvacb23 lvacb30 lvacb300 lvacb40 . lvacb81. > lvadd <- paste0("lvacb", 23:8

[R] How to generate mutiple set of samples in R?

2019-06-05 Thread Thevaraja, Mayooran
Hello I am trying to generate samples from a bulk set of number for my research. So I need to get an output which contains various collection of samples, for example, sample1, sample2, sample3, Does anyone suggest any ideas? [[alternative HTML version deleted]] __

[R] [R-pkgs] table.express: use dplyr verbs to build data.table expressions

2019-06-05 Thread Alexis Sarda
Hello everyone, I like the expressiveness of dplyr's data manipulation verbs, but I also appreciate the optimizations offered by data.table, so I figured: why not both? The table.express package leverages the rlang package to bridge dplyr and data.table by essentially parsing and chaining the ope