Re: [R] Shift the normal curve to the top or near to the top of the histogram

2017-09-24 Thread AbouEl-Makarim Aboueissa
Dear Jim: Thank you very much abou On Sun, Sep 24, 2017 at 8:18 PM, Jim Lemon wrote: > Hi Abou, > Try this: > > library(plotrix) > curve(rescale(dnorm(x > ,mean=mean(Lizard.tail.lengths),sd=sd(Lizard.tail.lengths)), > c(0,6)),add=TRUE, col=2, lwd = 2) > > Jim > > > On Mon, Sep 25, 2017 at 9:3

Re: [R] Shift the normal curve to the top or near to the top of the histogram

2017-09-24 Thread Jim Lemon
Hi Abou, Try this: library(plotrix) curve(rescale(dnorm(x ,mean=mean(Lizard.tail.lengths),sd=sd(Lizard.tail.lengths)), c(0,6)),add=TRUE, col=2, lwd = 2) Jim On Mon, Sep 25, 2017 at 9:35 AM, AbouEl-Makarim Aboueissa wrote: > Dear All: > > One more thing. > > I want to add the normal curve to t

[R] Shift the normal curve to the top or near to the top of the histogram

2017-09-24 Thread AbouEl-Makarim Aboueissa
Dear All: One more thing. I want to add the normal curve to the histogram. Is there away to stretch the peak of the curve to the top of the histogram or at least near to the top of the histogram. Please see the code below. Lizard.tail.lengths <- c(6.2, 6.6, 7.1, 7.4, 7.6, 7.9, 8, 8.3, 8.4, 8.5

Re: [R] Remove spacing at the top and bottom of a plot

2017-09-24 Thread AbouEl-Makarim Aboueissa
Dear David: Thank you very much. with thanks abou On Sun, Sep 24, 2017 at 5:28 PM, David L Carlson wrote: > The default margins are set as lines below, left, top, and right using > mar=c(5.1, 4.1, 4.1, 2.1). Just change the top margin something like 1.1: > > par(mfrow=c(1,2), mar=c(5.1, 4.1, 1

Re: [R] Remove spacing at the top and bottom of a plot

2017-09-24 Thread David L Carlson
The default margins are set as lines below, left, top, and right using mar=c(5.1, 4.1, 4.1, 2.1). Just change the top margin something like 1.1: par(mfrow=c(1,2), mar=c(5.1, 4.1, 1.1, 2.1)) --- David L. Carlson Department of Anthropology Texas A&M University -Origina

Re: [R] R version 3.3.2, Windows 10: gstat package: Error in fitting a variogram model using 'fit.variogram' function

2017-09-24 Thread Bert Gunter
No reproducible example makes it difficult to diagnose the source of the error. Did you try using traceback() after the error? That might give you a hint. I am unfamiliar with the package and function, but check the "range" argument to make sure it's supposed to be a single value and not a vector

[R] Remove spacing at the top and bottom of a plot

2017-09-24 Thread AbouEl-Makarim Aboueissa
Dear All: Is there is away to remove spacing at the top and the bottom of a plot? If so, any help will be appreciated. Please use this code as an example: par(mfrow=c(1,2)) lizard <- c(6.2, 6.6, 7.1, 7.4, 7.6, 7.9, 8, 8.3, 8.4, 8.5, 8.6,8.8, 8.8, 9.1, 9.2, 9.4, 9.4, 9.7, 9.9, 10.2, 10.4, 10.

[R] R version 3.3.2, Windows 10: gstat package: Error in fitting a variogram model using 'fit.variogram' function

2017-09-24 Thread Rathore, Saubhagya Singh
Dear Members, I am trying to fit a variogram model using fit.variogram function from the gstat package. The figure showing my experimental variogram can be seen here: https://i.stack.imgur.com/UZXw4.png My code line for this operation is: > c2.vgm.fit<-fit.variogram(c2.vgm.exp,vgm(nugget=0,

Re: [R] gsDesign Pocock & OBF boundary

2017-09-24 Thread array chip via R-help
Sorry it didn 't work again. I am on yahoo mail, and just found a switch to change from Rick text to Plain text, so here it goes again: I am learning to use the gsDesign package. I have a question about Pocock and OBF boundary. As far as I can understand, these 2 boundaries require equal spac

Re: [R] "XLConnect" packages; Excel dates read incorrectly

2017-09-24 Thread John
Hi Eric, Thank you for your message! It does work in my system!! I follow you by typing it: date11<-as.Date(as.POSIXlt(a_col$date),format="%Y-%m-%d") Then I typed it: date12<-as.Date(a_col$date, format="%Y-%m-%d") date12 yields exactly the same results as date11. Then my system

Re: [R] gsDesign Pocock & OBF boundary

2017-09-24 Thread Jeff Newmiller
Still failed. The first secret is in your email program settings, to use Plain Text format (at least for emails you send to this mailing list). The second secret tool to use is the reprex package to let you verify that your code example will do on our computers what it is doing on your compute

Re: [R] "XLConnect" packages; Excel dates read incorrectly

2017-09-24 Thread Jeff Newmiller
FYI: Most files you might attach to an email sent to the mailing list will not transmitted to us due to virus propagation policies of the mailing list (they are removed see the Posting Guide). The best method for sharing binary files is to to put them on a website like Dropbox or Google Driv

Re: [R] "XLConnect" packages; Excel dates read incorrectly

2017-09-24 Thread Eric Berger
Hi John, I was able to reproduce your problem in my environment. I modified the statement date11<-as.Date(a_col$date, format="%Y-%m-%d") to date11<-as.Date(as.POSIXlt(a_col$date),format="%Y-%m-%d") which then gives the output you would like to see (at least on my system) > date11 [1] "2004-01-01"