Re: [R] Editing figure without re-running the plotting code?

2013-03-11 Thread Sherri Heck
interactively with the display. But > in many ways grid's programmatic editing and redisplay of modified > grobs is more flexible and powerful, I would say. In any case, the > editing capabilities exist. > > -- Bert > > On Sun, Mar 10, 2013 at 3:47 PM, Jim Lemon wrote: >

[R] Editing figure without re-running the plotting code?

2013-03-10 Thread Sherri Heck
Dear all, I am curious if anyone knows of a command/program that would enable one to edit a figure in R once it is created (akin to Matlab). Currently, if I need to make any changes to the figure I do so and then have to run the plotting portion of the code again. I have searched the R site mail

[R] Multi-page plots (Trellis)

2011-02-10 Thread sherri heck
I need. Any help is greatly appreciated. Thanks in advance! Sherri Heck Graduate Research Assistant National Center for Atmospheric Research, Boulder CO University of Colorado, Boulder CO [[alternative HTML version deleted]] __ R-help@r-project.org m

[R] aggregating using a non-summary function?

2009-08-18 Thread Sherri Heck
Dear all- I have a data set that looks as follows (data are taken every 5 minutes): LST in mphDeg DegF DegF2%volts Degmph2 w/m2 090501 -9997.5 259.3 33.0 -999 41.5 -999 -9999.10.2 0905010005 -999 11.0 261.2 33.1 -999 42.6

[R] Plot legend

2009-04-10 Thread Sherri Heck
Dear All- I am trying to create a legend where the first 9 terms are represented as pch=16 in one column (which I am able to do); but, I would like the last two terms in that column to be 'lines" (which are black and red - just as it looks like in the plot). I have read through many help pages

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
code file. Then, if the code is run on a Windows machine, the function call windows() does the Windows thing; but if the code is run on Linux then the above test detects that, and defines a function windows() which does the same as X11(). Ted. On 26-Feb-09 01:25:36, Sherri Heck wrote: i am askin

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
hahaha! okay. at least your responses are positive! thx! David Winsemius wrote: Definitely "maybe". Possibly "yes". Usually. Pick one of the above. -- David Winsemius On Feb 25, 2009, at 8:25 PM, Sherri Heck wrote: i am asking if, in general, r code can be writ

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
i am asking if, in general, r code can be written on a linux-based system and then run on a windows-based system. Rolf Turner wrote: On 26/02/2009, at 2:08 PM, Sherri Heck wrote: Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The

[R] windows vs. linux code

2009-02-25 Thread Sherri Heck
Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said that it needs to run on a Linux system. Does anyone have any insight and/or can verify this. I haven't yet obtained the code, so I haven't been able t

[R] POSIXct and chron issues with tz

2009-01-03 Thread Sherri Heck
Dear All- I am trying to merge two data files - they have different date formats and different times zones. I need to match up the date/time of the datasets and then invoke a conditional statement, such as: if dataC$mph is >= 12 then keep dataM$co23 for the corresponding time/date stamp. sn

Re: [R] adding date/time stamp

2008-12-31 Thread Sherri Heck
and help and happy new year: sherri heck Gabor Grothendieck wrote: Try this: aggregate(z$mph, trunc(time(z), "hour"), mean) (09/01/05 00:00:00) (09/01/05 01:00:00) (09/01/05 02:00:00) 9.2750010.08333 9.2 On Tue, Dec 30, 2008 at 6:30 PM,

[R] adding date/time stamp

2008-12-30 Thread Sherri Heck
("character", rep("numeric", 10))) z.ts <- ts(z, frequency=12)#avging 5 min intervals to get hourly avg. ww <- matrix(aggregate(z.ts[,2], FUN=mean)) any thoughts as to how to add the time stamp is greatly welcomed! sherri heck __

[R] data format issue

2008-12-20 Thread Sherri Heck
Dear all- I have a dataset (see a sample below - but the whole dataset is June 2005 - June 2008). The "LST" format is "YYMMDDHHmm" and I would like to get the hourly average of the "mph" for the summer months (spanning all years). I have been trying to use "aggregate" but am not having much

[R] sep. dataset

2008-10-12 Thread Sherri Heck
Hi everyone- I have a dataset that I created using the aggregate command: Hour LevelC2 1 1 1 -3.517117e+00 2 2 1 -2.536083e+00 3 3 1 -1.429000e+00 4 4 1 -1.148667e-01 5 5 1 1.345333e+00 6 6 1 3

Re: [R] adding NA to "subset"

2008-09-04 Thread Sherri Heck
Fantastic! Each suggestion worked beautifully. Thanks so much. Henrique Dallazuanna wrote: Try this: is.na <http://is.na>(spdco2[,2]) <- which(spdco2[,2] < 4.7) spdco2 On Thu, Sep 4, 2008 at 4:21 PM, Sherri Heck <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wro

[R] adding NA to "subset"

2008-09-04 Thread Sherri Heck
Hi All- I have a data set (spdco2) > spdco2 [,1] [,2] [,3] [1,]1 5.4 382.4212 [2,]2 5.1 383.0315 [3,]3 4.8 383.9520 [4,]4 4.7 384.4376 [5,]5 4.7 384.5929 [6,]6 4.4 384.8864 [7,]7 4.1 385.2156 [8,]8 3.8 385.2919 [9,]9 3.7 385.5925 [10,] 10

Re: [R] boxplot - label outliers

2008-09-02 Thread Sherri Heck
text to the plot in the appropriate place? Or both? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sherri Heck Sent: Tuesday, September

[R] boxplot - label outliers

2008-09-02 Thread Sherri Heck
Hi All- I have 24 boxplots on one graph. I do not have the whiskers extending to the outliers, but I would like to label the maximum value of each outlier above the whiskers. I have the stats but am having trouble figuring out how to label the whiskers. Any suggestions would be great! she

[R] aggregate

2008-08-08 Thread Sherri Heck
Dear All- I have a dataset that is comprised of the following: doy yr mon day hr hgt1 hgt2 hgt3 co21 co22 co23 sig1 sig2 sig3 dif flag 244.02083 2005 09 01 00 2.6 9.5 17.8 375.665 373.737 373.227 3.698 1.107 0.963 -0.509 PRE 244.0625 2005 09 01 01 2.6 9.5 17.8 393.66 384.773 379.466 15.336 11

Re: [R] boxplot tick locations

2008-04-15 Thread Sherri Heck
hat you want? > > sherri <- data.frame(grp=rep(letters[1:6], 20), value=rnorm(6*20)+6) > temp <- with(sherri, boxplot(value~grp, xaxt='n')) > axis(1, 1:5+0.5, rep('', 5)) > > Peter Alspach > > > >> -Original Message- >> From: [EMA

[R] boxplot tick locations

2008-04-14 Thread Sherri Heck
hi all- i am creating a boxplot and would like to shift the x-axis tick marks (named 1:23) so that the ticks are in between the boxes and not centered in the middle of the boxes. i have searched the help files and google and have not found what i am looking for. does anyone know how to do this

Re: [R] creating conditional means

2007-12-06 Thread Sherri Heck
th Hour co2 num1 num2 >>> 2006 110 383.3709 28 28 >>> 2006 111 383.3709 28 28 >>> 2006 112 383.3709 28 28 >>> 2006 113 383.3709 28 28 >>> 2006 114 383.3709 28 28 >>> 2006 115 383.3709

Re: [R] creating conditional means

2007-12-01 Thread Sherri Heck
ion(Lines), header = TRUE) > aggregate(DF[4:6], >with(DF, data.frame(Year, Qtr = (Month - 1) %/% 3 + 1, Hour)), >mean) > > On Dec 1, 2007 3:57 PM, Sherri Heck <[EMAIL PROTECTED]> wrote: > >> Hi all- >> >> I have a dataset (year, month, hour, co2(p

[R] creating conditional means

2007-12-01 Thread Sherri Heck
Hi all- I have a dataset (year, month, hour, co2(ppm), num1,num2) [49,] 2006 110 383.3709 28 28 [50,] 2006 111 383.3709 28 28 [51,] 2006 112 383.3709 28 28 [52,] 2006 113 383.3709 28 28 [53,] 2006 114 383.3709 28 28 [54,] 2006 115 383.3709