Re: [R] Polygon

2018-10-02 Thread Steven Yen
Thanks!!! It did wonders. Steven On 10/3/2018 9:39 AM, David Winsemius wrote: >> On Oct 2, 2018, at 5:50 PM, Steven Yen wrote: >> >> Great. Thanks! It did wonders. >> 1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3) >> and mark only the ticks -1.96 and 1.96. >> 2. Better ye

Re: [R] Polygon

2018-10-02 Thread David Winsemius
> On Oct 2, 2018, at 5:50 PM, Steven Yen wrote: > > Great. Thanks! It did wonders. > 1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3) > and mark only the ticks -1.96 and 1.96. > 2. Better yet, to draw vertical lines at x = -1.96 and x = 1.96. > Thanks. Read ?plot.defaul

Re: [R] Polygon

2018-10-02 Thread Steven Yen
Great. Thanks! It did wonders. 1. Is there a way to suppress the obvious tick stops (-3,-2,-1,0,1,2,3) and mark only the ticks -1.96 and 1.96. 2. Better yet, to draw vertical lines at x = -1.96 and x = 1.96. Thanks. Steven On 10/3/2018 12:51 AM, Rui Barradas wrote: > Hello, > > Continue with > >

Re: [R] Strange result for strptime with %p

2018-10-02 Thread David Winsemius
> On Oct 2, 2018, at 10:11 AM, David Winsemius wrote: > > >> On Oct 2, 2018, at 6:30 AM, Marc Girondot via R-help >> wrote: >> >> Dear members... are these results normal ? >> >> For the first one, no problem. I expected this: >> >>> strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y %I

Re: [R] Sp-package overlay

2018-10-02 Thread Ben Tupper
Hi, I'm pretty sure that what you ask is likely not too hard to do. On the other hand, I think you will do well to consider the following... 1. Join the mailing list; the folks there will know better what you are trying to do - see https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R] Strange result for strptime with %p

2018-10-02 Thread David Winsemius
> On Oct 2, 2018, at 6:30 AM, Marc Girondot via R-help > wrote: > > Dear members... are these results normal ? > > For the first one, no problem. I expected this: > > > strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y %I:%M:%S %p"), > > tz="Asia/Jayapura") > [1] "2018-05-01 01:00:00 WIT

Re: [R] Polygon

2018-10-02 Thread Rui Barradas
Hello, Continue with polygon(-rev(cord.x), rev(cord.y), col = 'skyblue') Hope this helps, Rui Barradas Às 17:25 de 02/10/2018, Steven Yen escreveu: Can someone help me with polygon. The following codes are self-runnable and mark a shaded area under the standard normal curve in the x-range

Re: [R] Why do two different calls to mgcv::gamm give different p-values?

2018-10-02 Thread Øystein Sørensen
Thanks a lot, Simon. That was a silly mistake on my part. After correcting, there is still a slight difference between the p-values, but this is so small that I guess it is just numerics. Best, Øystein On Tue, Oct 2, 2018 at 2:26 PM Simon Wood wrote: > Dear Øystein, > > In your code 'id' is set

[R] Polygon

2018-10-02 Thread Steven Yen
Can someone help me with polygon. The following codes are self-runnable and mark a shaded area under the standard normal curve in the x-range (-3,-1). Is there a way to also mark the area in (1,3), at the same time. That is, I want shaded areas in both tails. Thank you... === # Create data for t

[R] Sp-package overlay

2018-10-02 Thread Ivy Pieters
Hey there, For my internship I have to work with R. I am working with R for the first time and I don't know much. Somehow I don't manage to find the answer to my question in google. I think I don't search with the right words, or maybe I just don't understand enough. Anyways, I hope someone here

Re: [R] Strange result for strptime with %p

2018-10-02 Thread Jeff Newmiller
... except that the %p is ignored or generates an error (implementation-dependent) if you use %H, so this may only address a few of the values you are processing and then only on some platforms. On October 2, 2018 8:22:02 AM PDT, Rui Barradas wrote: >Hello, > >Or %H, it also works. > >strptime(

Re: [R] Strange result for strptime with %p

2018-10-02 Thread Rui Barradas
Hello, Or %H, it also works. strptime("05/01/18 00:59:59 AM", format = ("%m/%d/%y %H:%M:%S %p"), tz="Asia/Jayapura") #[1] "2018-05-01 00:59:59 WIT" Hope this helps, Rui Barradas Às 15:20 de 02/10/2018, PIKAL Petr escreveu: Hi Credit belongs to documentation. I picked it from it. Cheers

Re: [R] Strange result for strptime with %p

2018-10-02 Thread PIKAL Petr
Hi Credit belongs to documentation. I picked it from it. Cheers Petr > -Original Message- > From: peter dalgaard > Sent: Tuesday, October 2, 2018 4:15 PM > To: PIKAL Petr > Cc: Marc Girondot ; r-help mailing list project.org> > Subject: Re: [R] Strange result for strptime with %p > >

Re: [R] Strange result for strptime with %p

2018-10-02 Thread peter dalgaard
Nice catch, Petr: > strptime("05/01/18 00:59:59 AM", format = ("%m/%d/%y %I:%M:%S %p"), > tz="Asia/Jayapura") [1] NA > strptime("05/01/18 12:59:59 AM", format = ("%m/%d/%y %I:%M:%S %p"), > tz="Asia/Jayapura") [1] "2018-05-01 00:59:59 WIT" -pd > On 2 Oct 2018, at 15:39 , PIKAL Petr wrote: > >

[R] Book: Spatial, Temporal and Spatial-Temporal Ecological Data Analysis with R-INLA. Volume II: GAM and Zero-Inflated Models

2018-10-02 Thread Highland Statistics Ltd
We are pleased to announce the following book: Spatial, Temporal and Spatial-Temporal Ecological Data Analysis with R-INLA. Volume II: GAM and Zero-Inflated Models Authors: Zuur and Ieno Book website: www.highstat.com Paperback or EBook can be order (exclusively) from www.highstat.com TOC: http:

Re: [R] Strange result for strptime with %p

2018-10-02 Thread PIKAL Petr
Hi Maybe it is connected to %I Hours as decimal number (01–12). Your input has hour as 00 Cheers Petr > -Original Message- > From: R-help On Behalf Of Marc Girondot via > R-help > Sent: Tuesday, October 2, 2018 3:30 PM > To: R-help Mailing List > Subject: [R] Strange result for strpti

[R] Strange result for strptime with %p

2018-10-02 Thread Marc Girondot via R-help
Dear members... are these results normal ? For the first one, no problem. I expected this: > strptime("05/01/18 01:00:00 AM", format = ("%m/%d/%y %I:%M:%S %p"), tz="Asia/Jayapura") [1] "2018-05-01 01:00:00 WIT" For this one, it is ok also: > strptime("05/01/18 01:00:00 AM", format = ("%m/%d/

Re: [R] Why do two different calls to mgcv::gamm give different p-values?

2018-10-02 Thread Simon Wood
Dear Øystein, In your code 'id' is set up to be numeric. In your first gamm call it gets coerced to a factor (since nothing else would make sense). In  your second gamm call it is simply treated as numeric, since that could makes sense. To make the two models equivalent you just need to substi

[R] confiidence limits in Binom package

2018-10-02 Thread Adeela Munawar
Dear List, I am using your package binom in R version 3.4.4 but i have to display lower and upper confidence limts in binom.confint and binom.length function but unable to dispaly them. Could you suggest any improvement? for example, Binom<-binom.length(p=0.01, n=40, conf.level = 0.95, method = "a