Re: [R] [FORGED] Lattice barchart legend with panel.barchart

2016-07-27 Thread Seth Bigelow
4,1), > key=simpleKey(title="Survived", text=levels(Titan$Survived), >rectangles=TRUE, points=FALSE, columns=2)) > > Paul > > On 28/07/16 09:02, Seth Bigelow wrote: > >> I have constructed a barchart that requires a panel call, but

[R] Lattice barchart legend with panel.barchart

2016-07-27 Thread Seth Bigelow
I have constructed a barchart that requires a panel call, but the panel reduces the facsimiles of bars in the legend to small colored circles. You can see this behavior in the following example: Titan <- as.data.frame(Titanic) titanpanel <- function(x,y,...){ panel.barchart(x,y,...) }

[R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
Greetings: My dataframe has 4 variables: treecode, year, rw (tree ring width), and d (tree diameter). The d variable only has data for 2014. I wish to calculate earlier diameters by subtracting each year's growth (rw) from the previous year's diameter, by treecode. Can anyone help me with

Re: [R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
Petr, Your code works therefore I pronounce it beautiful. Many many thanks --Seth -Original Message- From: PIKAL Petr [mailto:petr.pi...@precheza.cz] Sent: Tuesday, February 10, 2015 11:23 AM To: Seth Bigelow; r-help@r-project.org Subject: RE: [R] function that calculates using

Re: [R] function that calculates using preceding records

2015-02-10 Thread Seth Bigelow
Aha, this solution is even more elegant than that of the previous suggestion. Thanks for alerting me to the capabilities of plyr! --Seth -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Tuesday, February 10, 2015 2:14 PM To: Seth Bigelow Subject: Re: [R] function