Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-29 Thread Duncan Murdoch
On 2024-11-28 12:36 p.m., Fer wrote: That's pretty similar to call axis function, i.e.  plot(rnorm(100), yaxt="n", bty="n")  usr <- par("usr")  ## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE)  axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of the plot box) You don'

Re: [R] Remove all box around a plot except bottom line (base graphics)

2024-11-29 Thread Fer
That's pretty similar to call axis function, i.e.  plot(rnorm(100), yaxt="n", bty="n")  usr <- par("usr")  ## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE)  axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of the plot box) Best Fer On 11/28/24 14:52, Duncan Murdoch wrote:

Re: [R] Trying to get the prior value of a record from a data.frame . . . data.frame

2024-11-29 Thread Rui Barradas
Às 01:25 de 29/11/2024, Sorkin, John escreveu: I need to write code that will give me the previous value of from a data.frame. I have written the following code using the shift function from data.table . It does not work. I hope someone can help me correct the code. ###