[R] Custom strips in lattice

2008-06-18 Thread Jim Price
anks as, despite being a fairly frequent lattice user, I've learnt a great deal from it - although I've not finished it yet, so if the answers are in there somewhere my apologies!) and couldn't see these issues addressed. If anyone has a solution it would be much appreciated. Thanks!

[R] Re membering the last time an event occurred within a dataframe

2008-07-03 Thread Jim Price
ulation in R and I just can't get my head around the code to solve it. I've been eyeballing rle and I think there may be a solution hiding in there somewhere, but I'm still failing to progress. Any help would be appreciated! Thanks in advance, Jim Price Cardiome Pharma. Corp.

Re: [R] Re membering the last time an event occurred within a dataframe

2008-07-03 Thread Jim Price
vid == 1))) > > > On Thu, Jul 3, 2008 at 3:19 PM, Jim Price <[EMAIL PROTECTED]> wrote: > >> >> All, >> >> I am constructing a pharmacokinetic dataset and have hit a snag. The >> dataset >> can be demonstrated in the following way: >&

[R] layout is to xyplot as ??? is to qplot

2008-07-10 Thread Jim Price
ed an obvious help-page somewhere! Thanks in advance, Jim Price Cardiome Pharma Corp. -- View this message in context: http://www.nabble.com/layout-is-to-xyplot-as-is-to-qplot-tp18391206p18391206.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Jim Price
I wrote a little utility function for exactly this reason, which I use with long titles. You may want to add calls to par to adjust the upper margin if you are using raw graphical functionality (plot et al) - but lattice adjusts the upper margin automatically so you wouldn't need to add anything e

Re: [R] Fitting large titles in a plot

2007-12-06 Thread Jim Price
unction to 2 lines of code" half a dozen people have already shown exactly how you can do that, making me look totally incompetent. Ah well, such is life :) Jim. Marc Schwartz wrote: > > > On Thu, 2007-12-06 at 09:28 -0800, Jim Price wrote: >> I wrote a little utility fu

Re: [R] Ceiling to the nearest ten?

2008-01-14 Thread Jim Price
A suggestion for a family of such functions: ceilGenerator <- function(num) function(x) num * ceiling(x / num) ceil10 <- ceilGenerator(10) ceil20 <- ceilGenerator(20) ceil10(1:10 * 4) ceil20(1:10 * 4) Lauri Nikkinen wrote: > > R-users, > > Is there a function for ceiling to the

[R] xyplot: subscripts, groups and subset

2008-05-16 Thread Jim Price
ttached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] lattice_0.17-6 loaded via a namespace (and not attached): [1] grid_2.7.0 Thanks, Jim Price Cardiome Pharmaceutical Corporation. -- View this message in context: http://ww

[R] Lattice + Word: Changing .wmf files to .pdf files

2008-06-04 Thread Jim Price
2 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] lattice_0.17-6 loaded via a namespace (and not attached): [1] grid_2.7.0 Jim Price. Cardiome Pharma Corp. -- View this message in context: http://www.nabble.com/Latt

[R] setHook and lattice

2008-02-29 Thread Jim Price
Hi, I am trying to find a way to automate production of page numbers in plots produced using the lattice package. To do this, I started playing around with setHook which works fine with vanilla plot, but the hook 'plot.new' doesn't appear to be relevant to the lattice package. I was wondering if

Re: [R] Splitting device for ggplots?

2008-11-03 Thread Jim Price
} } grid.mfrow(c(2,3), myPlot1, myPlot2, myPlot3, myPlot4, myPlot5, myPlot6) Jim Price Cardiome Pharma Corp. Spinu Vitalie wrote: > > Thanks Baptiste and Hadley, > > That viewports mechanism is indeed extremely versatile when it comes to > publication or designing new plo