[R] R units of margins, text and points in a figure

2015-11-10 Thread Gygli, Gudrun
Dear R-help, I am trying to plot some data in a plot where I leave a big margin free to add other information, namely text and points. I am now struggling with keeping the size of the margin, text and points in a fixed ratio. I want this so that the layout of the figure does not change every

Re: [R] Subsetting dataframe by the nearest values of a vector elements

2015-11-10 Thread Harun Rashid via R-help
HI Jean, Here is part of my data. As you can see, I have cross-section point and corresponding elevation of a river. Now I want to select cross-section points by 50m interval. But the real cross-section data might not have exact points say 0, 50, 100,…and so on. Therefore, I need to take points

Re: [R] R units of margins, text and points in a figure

2015-11-10 Thread Jim Lemon
Hi Gudrun, Let's see. First, the "cex" argument means character _expansion_, not an absolute size. So as the symbols and letters start out different sizes, that proportional difference remains as they are expanded. The size of text depends a bit upon the font that is being used. Perhaps if you dete

[R] conditionally disable evaluation of chunks in Rmarkdown...

2015-11-10 Thread Witold E Wolski
I do have an Rmd where I would like to conditionally evaluate the second part. So far I am working with : ```{r} if(length(specLibrary@ionlibrary) ==0){ library(knitr) opts_chunk$set(eval=FALSE, message=FALSE, echo=FALSE) } ``` Which disables the evaluation of subsequent chunks. However my

Re: [R] conditionally disable evaluation of chunks in Rmarkdown...

2015-11-10 Thread Bert Gunter
Strictly speaking, wrong email list. Markdown is R Studio software, and you should post on their support site. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Nov 10, 2015 at 2:40 AM, Witold

Re: [R] conditionally disable evaluation of chunks in Rmarkdown...

2015-11-10 Thread Jeff Newmiller
Well, strictly speaking knitr and rmarkdown are a contributed packages and the official contact for any contributed package is found via the maintainer() function. The Posting Guide indicates that R-help should only be used as a backup if that avenue is a dead end. To be fair to the OP, there a

Re: [R] ts.intersect() not working

2015-11-10 Thread Giorgio Garziano
It appears to be a numerical precision issue introduced while computing the "end" value of a time series, if not already specified at ts() input parameter level. You may want to download the R source code: https://cran.r-project.org/src/base/R-3/R-3.2.2.tar.gz and look into R-3.2.2\src\librar

Re: [R] conditionally disable evaluation of chunks in Rmarkdown...

2015-11-10 Thread Yihui Xie
The short answer is you cannot. Inline R code is always evaluated. When it is not evaluated, I doubt if your output still makes sense, e.g. "The value of x is `r x`." becomes "The value of x is ." That sounds odd to me. If you want to disable the evaluate of inline code anyway, you may use a custo

[R] MAc-pakcage, on OS-X 10.11.1: Warning Message In sqrt(var.T.agg.tau) : NaNs produced

2015-11-10 Thread Kostadin Kushlev
Hi there, I am trying to run a mini meta-analysis for three studies within one of my papers. I am using the Mac package for meta-analyzing correlation coefficients. I am using the following command: omni(es = z, var = var.z, data = dat, type="weighted", method = "fixed", ztor = TRUE) This pr

[R] alignments in random points

2015-11-10 Thread Denis Francisci
Dear forum, I have a number of random point in a polygon. I would like to find those points lying on the same lines. Is there an R function to find alignments in points (something like this: https://en.wikipedia.org/wiki/Alignments_of_random_points)? And is it possible to do the same thing but chan

Re: [R] [GGplot] Geom_smooth with formula "power"?

2015-11-10 Thread David Winsemius
> On Nov 9, 2015, at 7:19 AM, Catarina Silva > wrote: > > I've tried others initial solutions and the adjustement was done to power > model in ggplot - geom_smooth. > But, with "nls" I can't do the confidence interval with ggplot - geom_smooth? > I read that with "nls" we have to force "se=FA

Re: [R] MAc-pakcage, on OS-X 10.11.1: Warning Message In sqrt(var.T.agg.tau) : NaNs produced

2015-11-10 Thread Michael Dewey
Dear Kostadin You could give us the data (after all there are only three studies) so we can run it through a different package or you could look at the code for omni and see where it is computing sqrt(var.T.agg.tau) and how it computed that in the first place. And you could turn off HTML in

Re: [R] [GGplot] Geom_smooth with formula "power"?

2015-11-10 Thread Bert Gunter
See section 8.4-8.5 of MASS 4th Ed. (the book) and the use of profile.nls() and friends for profiling the log likelihhood surface. Warning: standard F,t approximations may be poor if the log likelihood is not nearly enough quadratic. The whole issue of what df to use is also contentious/unresolved

Re: [R] conditionally disable evaluation of chunks in Rmarkdown...

2015-11-10 Thread Henrik Bengtsson
On Tue, Nov 10, 2015 at 9:00 AM, Yihui Xie wrote: > The short answer is you cannot. Inline R code is always evaluated. > When it is not evaluated, I doubt if your output still makes sense, > e.g. "The value of x is `r x`." becomes "The value of x is ." That > sounds odd to me. > > If you want to d

Re: [R] MAc-package, on OS-X 10.11.1: Warning Message In sqrt(var.T.agg.tau) : NaNs produced

2015-11-10 Thread Roebuck,Paul L
Maybe change the warnings to errors temporarily, and decide for yourself about the problem. ... R> options(warn=2)# Turn warnings into errors R> omni(es=z, var=var.z, data=dat, type="weighted", method="fixed", ztor=TRUE) R> traceback() From: R-he

[R] no results

2015-11-10 Thread Alaa Sindi
Hi All, I am not getting any summary results and I do not have any error. what would be the problem? sem=mlogit.optim ( LL , Start, method = 'nr', iterlim = 2000, tol = 1E-05, ftol = 1e-08, steptol = 1e-10, print.level = 0) summary(sem) thanks _

[R] Revolutions blog: October 2015 roundup

2015-11-10 Thread David Smith
Since 2008, Revolution Analytics (and now Microsoft) staff and guests have written about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you miss

[R] Identifying attributes of specific foreach task on error.

2015-11-10 Thread nevil amos
I am running foreach to reclassify a large number of rasters. I am getting the Error in { : task 1359 failed - "cannot open the connection" How do I get the attributes ( in this case files being read and written) for that specific task? It runs fine until that point presumably there is a proble

Re: [R] no results

2015-11-10 Thread Johannes Huesing
Alaa Sindi [Tue, Nov 10, 2015 at 08:47:23PM CET]: Hi All, I am not getting any summary results and I do not have any error. what would be the problem? sem=mlogit.optim ( LL , Start, method = 'nr', iterlim = 2000, tol = 1E-05, ftol = 1e-08, steptol = 1e-10, print.level = 0) I see som