[R] lattice xyplot: how to change the y-axis labels size using yscale.components.subticks on the right side and how to adapt the ticks number

2023-05-29 Thread Laurent Rhelp
Dear R-Help-list,    I want to display many sensors on the same page so I have to adapt the size of the y-axis labels and I woul like to adapt the number of ticks according to the sensor. I use the yscale.components argument with the function yscale.components.subticks: see the code below. I

Re: [R] data.frame with a column containing an array

2023-05-29 Thread Georg Kindermann
Maybe a better solution instead of "don't do it!" might be to change: x[[j]] <- if(length(dim(xj)) != 2L) xj[i] else xj[i, , drop = FALSE] at: https://github.com/wch/r-source/blob/trunk/src/library/base/R/dataframe.R#L712 to: x[[j]] <- if(length(dim(xj)) < 2L) xj[i] else do.call("[",c(list(xj,

Re: [R] plot level, velocity, acceleration with one x axis

2023-05-29 Thread Spencer Graves
On 5/29/23 2:37 AM, Eric Berger wrote: How about this: a <- cbind(AirPassengers, diff(log(AirPassengers)), diff(diff(log(AirPassengers colnames(a)[2:3] <- c("percent increase", "acceleration") plot(a, xlab="year", main="AirPassengers") That's it. Thanks. sg HTH, Eric On Mon, May

Re: [R] plot level, velocity, acceleration with one x axis

2023-05-29 Thread Eric Berger
How about this: a <- cbind(AirPassengers, diff(log(AirPassengers)), diff(diff(log(AirPassengers colnames(a)[2:3] <- c("percent increase", "acceleration") plot(a, xlab="year", main="AirPassengers") HTH, Eric On Mon, May 29, 2023 at 7:57 AM Spencer Graves wrote: > > Hello, All: > > >