[R] make check fails -- how to debug

2020-02-11 Thread Barris, Wes
I am trying to build R-3.6.2 on a Linux system running CentOS 7.7.1908. "make check" fails. How can I troubleshoot this to find out what is wrong? R_PAPERSIZE=letter cd R-3.6.2 mkdir CentOS ../configure --with-x=no --enable-R-shlib make make check . . . running code in '../../tests/array-subset

Re: [R] how to create density plot in R with p value

2020-02-11 Thread Bert Gunter
I assume you mean: densityplot(~dat,data=tot, groups=type, panel = function(...){ panel.densityplot(...) panel.abline(v= -4) panel.text(-3.9, 0.35, "*") }, par.settings = list(superpose.line = list(col = c("blue","red"))), xlab="log2

Re: [R] how to create density plot in R with p value

2020-02-11 Thread Jim Lemon
Hi Ana, Okay, it's the lattice package. Try this: panel.abline(v=-4) panel.text(-3.9,0.35,"*") As I don't have your data I can't provide a complete example. Jim On Wed, Feb 12, 2020 at 8:50 AM Ana Marija wrote: > > Hi Jim > > > I tried your code and it didn't show me density curves. > > Howeve

Re: [R] Help to do this exercise

2020-02-11 Thread Richard O'Keefe
Others have already commented on the "no homework" policy. I'd like to make a different point. When I was doing my MSc many years ago, a friend of mine was really struggling with statistics. He complained to me that when studying the textbooks and looking at examples, he could never figure out why

Re: [R] how to create density plot in R with p value

2020-02-11 Thread Ana Marija
Hi Jim I tried your code and it didn't show me density curves. However I was able to do teh plot myself via: densityplot(~dat,data=tot, groups=type, par.settings = list(superpose.line = list(col = c("blue","red"))), xlab="log2 (variance)", plot.points=FALSE, a

Re: [R] how to create density plot in R with p value

2020-02-11 Thread Jim Lemon
Hi Ana, Your image didn't make it through (as usual). Try PNG or PDF format. Assumptions 1) You want to plot two lines using the _paired_ values of inter- and intra-individual variance. 2) The cases are in the same order in your data 3) You want to identify the two lines 4) You want to place text

Re: [R] how to create density plot in R with p value

2020-02-11 Thread John Kane
Please supply sample data in dput() format See ?dput. You might find these links helpful. http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example On Tue, 11 Feb 2020 at 15:07, Ana Marija wrote: > so I transformed my

Re: [R] how to create density plot in R with p value

2020-02-11 Thread Ana Marija
so I transformed my data from the previous email to look like this: > head(tot) dat type 1 -3.962 inter.individual.variance 2 -4.301 inter.individual.variance 3 -1.690 inter.individual.variance 4 -0.375 inter.individual.variance 5 1.816 inter.individual.variance 6 0.138

Re: [R] Survey package/svyby source code help

2020-02-11 Thread AndertechLLC--- via R-help
Thank you for responding. I am truly grateful. Apologies for omitting evident and pertinent information. I am using 3.36. I will update to 3.37. I did not notice the newer version. I realize I needed to be more specific. The attr(, "var") that I am interested in is displayed with str(result

Re: [R] Survey package/svyby source code help

2020-02-11 Thread Ivan Krylov
On Tue, 11 Feb 2020 15:23:14 + andertech...@protonmail.com wrote: > The attr(, "var") that I am interested in is displayed with > str(results) after the results object is declared. First line of the > subject code looks like: > > results <- (if (multicore) parallel::mcapply else lapply)(uniq

Re: [R] Survey package/svyby source code help

2020-02-11 Thread Ivan Krylov
On Tue, 11 Feb 2020 02:33:45 + AndertechLLC--- via R-help wrote: > When debugging the code I am not following the generation of values > in the results object attr(*, "var")" after line 57 completes. These > values are fed into line 74 (rval <- t(sapply(results, unwrap))). Which version of t

[R] Survey package/svyby source code help

2020-02-11 Thread AndertechLLC--- via R-help
Good day, I was looking for some help with understanding a particular portion of the svyby source code. When debugging the code I am not following the generation of values in the results object attr(*, "var")" after line 57 completes. These values are fed into line 74 (rval <- t(sapply(results,