[R] panel.xyplot and panel.loess using two different groupings

2015-01-27 Thread Timothy W. Hilton
=species, panel=panel.superpose, auto.key=TRUE, col.line=pal, par.settings=mytheme, panel.groups=function(x, y, ...){ panel.xyplot(x, y, ...) panel.loess(x, y, ...)}) Any help much appreciated. Thanks! Tim -- T

Re: [R] panel.xyplot and panel.loess using two different groupings

2015-01-27 Thread Timothy W. Hilton
you might want to add checks in the panel.groups function > for this. > > > HTH. > > > -- Bert > > Bert Gunter > Genentech Nonclinical Biostatistics > (650) 467-7374 > > "Data is not information. Information is not knowledge. And knowledge > is

Re: [R] panel.xyplot and panel.loess using two different groupings

2015-01-27 Thread Timothy W. Hilton
Thanks again, Bert, for taking the time to respond to my questions. It's doing exactly what I want now. I'm fairly new with lattice plots but they do seem like a big step forward. I'll look for Deepayan's book; thanks for the tip. -Tim On Tue, Jan 2015, 27 at 02:11:33PM -0800, Bert Gunter wrote

[R] sort rows of matrix by rows of another matrix

2008-07-31 Thread Timothy W. Hilton
Hello all, I am trying to sort rows of one matrix by rows of another. Given a1 and a2: -- > a1 [,1] [,2] [,3] [1,]768 [2,]424 [3,]472 [4,]038 a1 <- structure(c(7, 4, 4, 0, 6, 2, 7, 3, 8, 4, 2, 8), .Dim = c(4L, 3L)) > a2 [,1] [,2] [,

[R] seq: specify *minimum* end value, more elegant solution

2008-08-18 Thread Timothy W. Hilton
Hello, Using seq, I would like to specify a minumum end value, rather than a maximum end value. For example, rather than > seq(from=0, to=10, by=4) [1] 0 4 8 I would like to obtain [1] 0 4 8 12 I can do that with > by.value = 4 > seq(from=0,by=by.value,to=ceiling(10 / by.value)*by.value) [1

[R] help compiling add-on package

2010-07-07 Thread Timothy W. Hilton
ry. R CMD INSTALL and R.version() output follow below; any help greatly appreciated! -Tim -- Timothy W. Hilton PhD Candidate, Department of Meteorology The Pennsylvania State University 503 Walker Building, University Park, PA 16802 hil...@met

[R] rbind error (maybe a problem with chron package?)

2010-11-24 Thread Timothy W. Hilton
x27;m not sure what's happening. Each data frame has a column of chron objects and a column of float values. Minimal example of the data frames and the error below. If I start with a fresh R session, it works, until I load the chron package. I'd appreciate any suggestions! Thanks,

[R] lattice custom axis function -- right side margins

2011-03-03 Thread Timothy W. Hilton
if anyone can throw that in... Many thanks, Tim -- Timothy W. Hilton PhD Candidate, Department of Meteorology The Pennsylvania State University 503 Walker Building, University Park, PA 16802 hil...@meteo.psu.edu -- code to produce the plot wi

Re: [R] lattice custom axis function -- right side margins

2011-03-03 Thread Timothy W. Hilton
hed): [1] grid_2.12.2 tools_2.12.2 On Thu, Mar 2011, 03 at 01:05:49PM -0500, Richard M. Heiberger wrote: > print(my_plot(example_data, ylab.right=expression(e==mc^2)), > position=c(0,0,.95,1)) > > You will need a recent R version for the ylab.right argument. > > On Thu, Mar 3, 2011 at 1

Re: [R] lattice custom axis function -- right side margins

2011-03-03 Thread Timothy W. Hilton
To clarify the trouble I'm having with ylab.right, I am not getting an error message; the right-side label just does not appear on the plot. -Tim > On Thu, Mar 3, 2011 at 1:50 PM, Timothy W. Hilton wrote: > > > Many thanks, Richard -- the position argument does exactly what I

Re: [R] lattice custom axis function -- right side margins

2011-03-03 Thread Timothy W. Hilton
g for help. Many thanks to all who responded! -Tim On Thu, Mar 2011, 03 at 05:01:58PM -0800, P Ehlers wrote: > Timothy W. Hilton wrote: > >To clarify the trouble I'm having with ylab.right, I am not getting an > >error message; the right-side label just does not appear on th

[R] overlaying plots from a list of data frames

2009-02-03 Thread Timothy W. Hilton
s or plot should be called. Something like axis.already.exists(), but I can't figure out what that test should be. Many, many thanks. -Tim -- Timothy W. Hilton PhD Candidate, Department of Meteorology and Atmospheric Science The Pennsylvania State University 415 Walker Building, Univers

[R] passing R array to Fortran subroutine

2008-02-14 Thread Timothy W. Hilton
Hello, I am trying to run a piece of Fortran code from R, and I am having trouble passing an array to the fortran subroutine. My attempts to pass an array into the fortran are producing memory errors, and I cannot find an example that performs the task. I have looked at "Writing R Extensions

[R] zoo object: replace NAs from another zoo object

2008-03-13 Thread Timothy W. Hilton
Hello, I have two zoo objects, new and old, indexed by chron objects. Their structure is like this: (05/25/06 00:00:00) NA NA NA (05/25/06 00:02:00) 948.20 24.198 0 (05/25/06 00:04:00) 948.26 20.640 0 (05/25/06 00:06:00) 948.37 19.653 0 (05/25/06 00:08:00) 948.48 19.135 0 (05/2

Re: [R] zoo object: replace NAs from another zoo object

2008-03-14 Thread Timothy W. Hilton
Gabor, Many thanks for your suggestion. This solution is very close, but not exactly what I had in mind, because na.omit removes the entire row in which an NA appears. I want to replace values in old with non-NA values from corresponding times in new. If a timestamp from old does not appear