Re: [R] Unintended behaviour (possibly bugs)

2020-07-02 Thread Alexey Shipunov
Martin, Yes, I should have test it earlier. Thank you for the response! With best wishes, Alexey чт, 2 июл. 2020 г. в 22:30, Martin Maechler : > > >>>>> Alexey Shipunov > >>>>> on Wed, 1 Jul 2020 23:58:04 +0900 writes: > > > Dear colleagu

Re: [R] [FORGED] Re: Unintended behaviour (possibly bugs)

2020-07-01 Thread Alexey Shipunov
not attached): [1] compiler_4.0.2 tools_4.0.2 === Alexey Shipunov чт, 2 июл. 2020 г. в 08:18, Rolf Turner : > > > On 2/07/20 2:58 am, Alexey Shipunov wrote: > > > Dear colleagues, > > > > There is a new problem with dotchart(), and it is very simple to r

Re: [R] Unintended behaviour (possibly bugs)

2020-07-01 Thread Alexey Shipunov
we replace this part of code === offset <- cumsum(c(0, diff(as.numeric(groups)) != 0)) y <- seq_len(n) + 2 * offset === with === offset1 <- cumsum(c(0, diff(as.numeric(groups)) != 0)) y <- seq_len(n) + 2 * offset1 === everything will be well again. With best wishes, Alexey Ship

Re: [R] Unintended behaviour (possibly bugs)

2020-03-13 Thread Alexey Shipunov
Dear Martin, Great news, thanks! If you wish, please also consider my initial note about help(hist), this is definitely worrying new R users. With best wishes, Alexey пт, 13 мар. 2020 г. в 02:16, Martin Maechler : > > >>>>> Alexey Shipunov > >>>>> on

Re: [R] Unintended behaviour (possibly bugs)

2020-02-17 Thread Alexey Shipunov
to decide the margins settings. > > > > if (!(is.null(labels) && is.null(glabels))) { > >nmai <- par("mai") > >nmai[2L] <- nmai[4L] + max(linch + goffset, ginch) + > > 0.1 > >par(mai = nmai) > > }

Re: [R] Unintended behaviour (possibly bugs)

2020-02-16 Thread Alexey Shipunov
ply(aa, as.numeric)) # no warning but I do not think that this complication is quite necessary. Alexey пн, 17 февр. 2020 г. в 13:59, Alexey Shipunov : > > My suggestion (shipunov::Dotchart1()) was: > > === >yinch <- if (!is.null(ylab)) 0.4 else 0 ># inserted! >

Re: [R] Unintended behaviour (possibly bugs)

2020-02-16 Thread Alexey Shipunov
gins settings. > > if (!(is.null(labels) && is.null(glabels))) { >nmai <- par("mai") >nmai[2L] <- nmai[4L] + max(linch + goffset, ginch) + > 0.1 > par(mai = nmai) > } > > This should be moved to r-devel? > > Rui Bar

Re: [R] Unintended behaviour (possibly bugs)

2020-02-16 Thread Alexey Shipunov
s : > > Hello, > > I believe you are wrong, the error is not in dotchart, it's in your > code. You assume that to plot an object of class "table" is the same as > to plot an object of class "numeric". > > Inline. > > Às 12:21 de 16/02/20, Alexey Shipunov

[R] Unintended behaviour (possibly bugs)

2020-02-16 Thread Alexey Shipunov
{}, this will allow to see the code but in the same time will not strike beginners in R who just want to understand how hist() works. They will still be possible to run with example(..., run.dontrun=TRUE). With best wishes, Alexey Shipunov __ R-help@r-projec

[R] Warning: matrix by vector division

2008-03-07 Thread Alexey Shipunov
] [,2] # [1,] 0.0 0.333 # [2,] 0.5 0.333 # [3,] 0.5 0.333 === end of R code === With best wishes and regards, Alexey Shipunov __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Warning: matrix by vector division

2008-03-07 Thread Alexey Shipunov
Dear all, Thank you very much for all your valuable suggestions! Best wishes, Alexey Shipunov __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting