Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph) [SOLVED]

2016-10-25 Thread Paul Murrell
Hi Here are some alternatives that involve messing about with the grobs and viewports after the plot has been drawn. The percentage optimality of these solutions is up for debate ... ### # Edit the y-axis line after

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Paul Murrell
Hi Does this do what you want ? library(latticeExtra) c(vol_p, xy_p, x.same=TRUE) Paul On 26/10/16 04:30, Ben Tupper wrote: Thanks, Bert. I have used latticeExtra for layering graphics. I'm not sure how I would use it to align graphics rather superimposing them. I shall look into the the

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
Hi, Almost but not quite. It certainly moves the ball down the field, and, dang, that would be way too easy! I have been fiddling with the panel.widths to the lattice::plot method. No joy yet. Ben > On Oct 25, 2016, at 5:14 PM, Paul Murrell wrote: > > Hi >

Re: [R] About converting files in R

2016-10-25 Thread Bob Rudis
I'm afraid we'll need more information that that since the answer from many folks on the list to such a generic question is going to be a generic "yes". What's the source of the binary files? If you know the type, there may even be an R package for it already. On Tue, Oct 25, 2016 at 5:28 PM,

Re: [R] About converting files in R

2016-10-25 Thread Mark Sharp
Lily, Bob's suggestion is the best. You can also look at readBin(). Enter ?readBin at the R prompt. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Oct 25, 2016, at 4:40 PM, Bob Rudis wrote: > > I'm afraid we'll need more information that that since the answer from > many

[R] About converting files in R

2016-10-25 Thread lily li
Hi R users, Do any of you have any experience about converting binary files to ascii or txt files in R? Thanks a lot for your help. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph)

2016-10-25 Thread Zach Simpson
> Hello everybody, > > Using ggplot2 package, is there a way to force to stop the y-axis line > at a specified point ? (not using ylim because I want that some text > written using annotate() at the top of the graph is > still shown). > > Bellow is a simple example to show

Re: [R] [FORGED] lattice: control panel extent on device

2016-10-25 Thread Richard M. Heiberger
I think this is simpler. vol_p2 <- vol_p vol_p2$legend <- NULL print(update(vol_p2, scales=list(y=list(labels=FALSE))), split = c(1, 2, 1, 2), more = TRUE) draw.colorkey(vol_p$legend$right$args$key, draw=TRUE, vp=viewport(y=.27, height=.26, x=.75)) print(update(xy_p,

Re: [R] Error in a regression

2016-10-25 Thread John Dougherty
On Mon, 24 Oct 2016 10:54:00 -0500 Andrea Marcela Huerfano Barbosa wrote: > Hi guys, > When I try to do a linear regression into the console appears this > warning message: > > >* attempting model selection on an essentially perfect fit is > >nonsense* > > Some one

Re: [R] Can anyone help me with the below problem? I have tried stackoverflow but no help

2016-10-25 Thread Vivek Das
Dear Sarah, Thank you for your reply. I cannot upgrade debian since it is an HPC and I do not have root priviledges. I will try to install and older version that is compatible and report. Thanks a lot. Regards, Vivek On Oct 26, 2016 1:46 AM, "Sarah Goslee" wrote: > I

Re: [R] lattice: control panel extent on device

2016-10-25 Thread Duncan Mackay
Hi Ben A bit kludgy but it works. Further refinement by eye print(vol_p, position = c(0,0,1,0.5), more = TRUE) print(xy_p, position = c(0.14,0.5,0.86,1), more = FALSE) I do not know if viewports will be any better Regards Duncan Duncan Mackay Department of Agronomy and Soil Science

Re: [R] About converting files in R

2016-10-25 Thread Bob Rudis
Can you tell us where you got the file from and perhaps even send a link to the file? I know of at least 11 types of files that use `.bin` as an extension which are all different types of data with different binary formats. On Tue, Oct 25, 2016 at 5:40 PM, Bob Rudis wrote: > I'm

[R] Can anyone help me with the below problem? I have tried stackoverflow but no help

2016-10-25 Thread Vivek Das
Dear Users, I have a problem with installing a particular r-package in R -3.1.2 in my work Debian. The problem is mentioned in the link below. I have tried to seek help from stackoverflow but have not received any help. It would be great if anyone can point out the problem and let me know how I

Re: [R] Can anyone help me with the below problem? I have tried stackoverflow but no help

2016-10-25 Thread Sarah Goslee
I don't see your session info in the stackoverflow posting, but it looks like you're using Debian 6, which hit its end of life in February 2016. So the best way to get the current GLIBCXX is to upgrade to a current version of Debian. A google search on installing GLIBCXX_3.4.15 on Debian 6 turns

Re: [R] [FORGED] Re: lattice: control panel extent on device

2016-10-25 Thread Paul Murrell
Hi This might work, though it's a teensy bit more complicated and a bit manual (on the left axis labels) and it ignores heights and vertical whitespace ... library(lattice) d <- dim(volcano) xy <- data.frame(x = 1:d[1], y = volcano[,30] ) library(grid) grid.newpage()

Re: [R] [FORGED] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
Wow! That's exactly what I am looking for! I have had both books* open in front of me all day to no avail, and, I was spinning round and round - I was waaay off in left field. Thanks so much! Ben * https://www.r-project.org/doc/bib/R-books_bib.html#R:Sarkar:2008

Re: [R] Error in a regression

2016-10-25 Thread Michael Dewey
Dear Andrea At a guess you are trying to add variables to your model in some automatic way but since your model is already perfect the unnamed function you are using is telling you that you gave it an impossible task. On 24/10/2016 16:54, Andrea Marcela Huerfano Barbosa wrote: Hi guys, When

[R] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
Hello, I am drawing a levelplot and an xyplot on a single device as shown in the runnable example below. I would like the x axes to align - that is for them to cover the same extent left-to-right on the device. How do I go about doing that? ### # START ### library(lattice) d <-

Re: [R] lattice: control panel extent on device

2016-10-25 Thread Ben Tupper
Thanks, Bert. I have used latticeExtra for layering graphics. I'm not sure how I would use it to align graphics rather superimposing them. I shall look into the the custom panel plot but that is very new territory for me. Ben > On Oct 25, 2016, at 9:13 AM, Bert Gunter

[R] 100 fold cross validation in R

2016-10-25 Thread Santiago Bueno
Dear experts, I have to carry a 100 fold cross-validation of non linear regression models. Is it possible to find a way to do it in R. Best regards, Santiago Bueno [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --

Re: [R] Finding starting values for the parameters using nls() or nls2()

2016-10-25 Thread Pinglei Gao
Dear Dave Thanks for your kindness help. I am sorry, I am on a filed survey these days. I did not check my email for a long time. Please forgive me for the misunderstanding brought to you. Your answer works well for the model: Retention = exp (b0*exp (b1*Area^th)). Could you find the starting

Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph) [SOLVED]

2016-10-25 Thread Marc Girondot
After many tries, here is a solution using grob. I post here in case it could help someone. Note that this solution is not 100% optimal as it uses a trick (limits = c(-0.05, 1.02)) to show fully the points. Marc library("ggplot2"); require("gtable"); require("grid") p <- ggplot()+

Re: [R] 100 fold cross validation in R

2016-10-25 Thread David Winsemius
> On Oct 25, 2016, at 9:22 AM, Santiago Bueno wrote: > > Dear experts, > > I have to carry a 100 fold cross-validation of non linear regression > models. Is it possible to find a way to do it in R. > Show us your code for a single-fold validation. > Best regards, > >

Re: [R] Finding starting values for the parameters using nls() or nls2()

2016-10-25 Thread dave fournier
Unfortunately this problem does not appear to be well posed. Retention = (b0*Area^(th+1))^b If b0, th, and b are the parameter only the product (th+1)*b is determined. This comes from noting that powers satisfy (a^b)^c = a^(b*c) So your model can be written as

Re: [R] Finding starting values for the parameters using nls() or nls2()

2016-10-25 Thread David Winsemius
> On Oct 25, 2016, at 9:29 AM, dave fournier wrote: > > > > Unfortunately this problem does not appear to be well posed. > >Retention = (b0*Area^(th+1))^b > > If b0, th, and b are the parameter only the product (th+1)*b is determined. > > This comes from noting

Re: [R-es] Colores en names.arg de un barplot()

2016-10-25 Thread javier.ruben.marcuzzi
Estimado Mauricio Monsalvo No voy a poder leer y correr el archivo, tengo que resolver otro problema, si dentro de unos días no encuentra la solución, envíe nuevamente la pregunta y yo lo intento. Javier Rubén Marcuzzi De: Mauricio Monsalvo Enviado: martes, 25 de octubre de 2016 15:29 Para:

[R-es] Colores en names.arg de un barplot()

2016-10-25 Thread Mauricio Monsalvo
Hola. Tengo un gráfico que tiene muchos names.arg (demasiados...), de modo tal que le vendría bien al lector usar colores intercalados, tal que el primero sea azul, el segundo negro, el tercero azul, cuarto negro, y así. Es decir, definir un vector "similar" a este: rep(c("black", "blue"),

Re: [ESS] wget/curl and DOWNLOAD make variable customization WAS: ESS 16.10 released

2016-10-25 Thread Vincent Goulet
I would add that the current (16.10) setup further requires Internet access to build ESS. It might be a trivial concern, but shouldn't the archive be complete once it's been downloaded? v. > Le 25 oct. 2016 à 09:28, Sparapani, Rodney a écrit : > > > To Martin: are you