Re: [R] log of small values in R

2021-01-10 Thread Jeff Newmiller
?log1p On January 10, 2021 12:53:14 AM PST, Shaami wrote: >Dear FriendsI am facing the problem of log values in R. The >log(1-0.9) is giving -Inf while log(1e-18) gives finite >answer. Any suggestion to deal with this problem? Thank you > > [[alternative HTML

[R] log of small values in R

2021-01-10 Thread Shaami
Dear FriendsI am facing the problem of log values in R. The log(1-0.9) is giving -Inf while log(1e-18) gives finite answer. Any suggestion to deal with this problem? Thank you [[alternative HTML version deleted]] __

Re: [R] Green curve/line does not appear on the plot

2021-01-10 Thread Duncan Murdoch
On 10/01/2021 2:17 p.m., varin sacha via R-help wrote: Dear R-experts, I dont get any error message but I can't get the green curve/line on the plot. What is going on ? How to solve my problem ? Look at the values of robustfit.new. They are far smaller than any of the other values, and

[R] How to get Mean Magnitude of Relative Error with caret library

2021-01-10 Thread Neha gupta
Hi, I am using caret package and using nested resampling method (i.e. 5 fold for outer fold). I am getting the RMSE and MAE values, which are default to the caret library. My question is how can we implement the Mean Magnitude of Relative Error (MRE and MMRE) with caret. My code is the following:

[R] Green curve/line does not appear on the plot

2021-01-10 Thread varin sacha via R-help
Dear R-experts, I dont get any error message but I can't get the green curve/line on the plot. What is going on ? How to solve my problem ? Here is the R code :

Re: [R] Problem with a LOESS curve

2021-01-10 Thread varin sacha via R-help
Duncan, Great, many thanks, it works. Best, Le samedi 9 janvier 2021 à 21:13:30 UTC+1, Duncan Murdoch a écrit : Your x values aren't in increasing order.  When you plot lines(x, yfit), it joins the points in the order you give them, which jumps back and forth.  To fix, try o <-

Re: [R] How to avoid ggplot clipping the x axis [damn, replaces previous Email]

2021-01-10 Thread Rui Barradas
Hello, You are almost there. With scale_x_continuous use argument limits. ggplot(dat = tibDat, aes(x = x, y = y)) + geom_point() + scale_x_continuous(breaks = 1:6, labels = 1:6, limits = c(1, 6)) And with xlim it's not a vector c(1, 6), it's each element on

Re: [R-es] pegar

2021-01-10 Thread Carlos Ortega
Hola, Prueba también la opción de tras pegar tu código ir al menú de RStudio: - click en "Code" - Y en el desplegable que aparece en la parte inferior (teniendo el código que acabas de pegar seleccionado) hacer click en "Reformat Code". - En Windows la combinación de teclas es

Re: [R-es] pegar

2021-01-10 Thread Emilio L. Cano
Hola, Lo más rápido: 1. CTRL+A (seleccionar todo) 2. CTRL+I (Indentar) Emilio > El 10 ene 2021, a las 17:00, Jose Betancourt Bethencourt > escribió: > > Estimados > > Cuando preparo un script en block de notas o en word, al pegarlo en R > Studio me quedan con un gran margen a la izquierda

[R-es] pegar

2021-01-10 Thread Jose Betancourt Bethencourt
Estimados Cuando preparo un script en block de notas o en word, al pegarlo en R Studio me quedan con un gran margen a la izquierda ?Como se evita eso? saludos -- Dr. Jose A. Betancourt Bethencourt Universidad de Ciencias Medicas Carlos j. Finlay ___

[R] How to avoid ggplot clipping the x axis [damn, replaces previous Email]

2021-01-10 Thread Chris Evans
[I must try to remember that swapping between Rstudio and my Emailer is a recipe for hitting ctrl-enter and posting prematurely: sorry!] I am sure I am doing something stupid but I can't see what. I am plotting data and want the x axis labels to reflect the theoretical range of the x variable

[R] How to avoid ggplot clipping the x axis

2021-01-10 Thread Chris Evans
I am sure I am doing something stupid but I can't see what. I am plotting data and want the x axis labels to reflect the theoretical range of the x variable which happens to be 1:6 but the observed values have range 2.6 to 5.9. I thought xlim(c(1,6)) should have got me that quite simply but it