[R] Subsetting across a frame for plotting

2005-06-22 Thread Morten Sickel
, bot to no help. I am probably overlooking somehing quite simple, (not to mention not really understanding R's data model..) so help would be appreciated. -- Morten Sickel Norwegian Radiation Protection Authority __ R-help@stat.math.ethz.ch mailing list

Re: [R] Subsetting across a frame for plotting

2005-06-22 Thread Morten Sickel
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Liaw, Andy You might save yourself some headaches by turning it into a matrix instead, since all the columns are either integer or numeric: tonedata - data.matrix(tonedata) Data frames are really lists, so even when you get a

RE: [R] plot

2003-03-17 Thread Morten Sickel
(...) # Plots data point with an y-scale of 0-10 grid,yaxis(main=FALSE,...) # Draws the right y-axis Morten -- Morten Sickel Norwegian Radiation Protection Authority http://www.nrpa.no __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

RE: [R] Moving average

2003-03-07 Thread Morten Sickel
Wayne Jones wrote: Does anyone know if R has the functionality to calculate a simple moving average. I cant seem to find it in the help menu. does filter() do what you need? Morten __ [EMAIL PROTECTED] mailing list

RE: [R] Moving average

2003-03-07 Thread Morten Sickel
Sorry, a neccesary addition: filter in library ts. Morten __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

RE: [R] log axis assignment

2003-03-04 Thread Morten Sickel
From: Jeremy Z Butler [mailto:[EMAIL PROTECTED] Surely I should be able to set the ylog option to T using another object (logaxis). for (n in colnames(raw)) { if(n==pH){logaxis-T} else {logaxis-F} plot(full.age,raw[,n],type=n,ylog=logaxis) ... } What (probably) will work is:

RE: [R] Why does 'exists' need a quoted argument?

2003-02-20 Thread Morten Sickel
-Default value} /code So, no, I think some useful functionality would be thrown out if exist did not require a string. Morten Sickel __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

RE: [R] Overlaying a moving average curve on top of a barplot

2003-02-03 Thread Morten Sickel
$value,c(0.25,0.25,0.25,0.25))) /code Points showing actual measurements and a four periods moving average as a line. Hope this helps. Morten -- Morten Sickel Norwegian Radiation Protection Authority http://www.nrpa.no __ [EMAIL PROTECTED] mailing list

[R] Varying texts in expression(paste())

2003-01-31 Thread Morten Sickel
(nuccode) (TBq/year) which definiately was not what I wanted... should I use some other wrapper function on the expression, or are there some other ways of making superscripts in figure texts? regards Morten -- Morten Sickel Norwegian Radiation Protection Authority http://www.nrpa.no

RE: [R] Plotting w/multiple y-axes?

2003-01-21 Thread Morten Sickel
Per Bak wrote: How do I plot using multiple(2) y-axes? I have two series that use the same x-data, but have very different scales. I don't know, it that is the only, or even the best way to do it, but I plot with multiple Y-axes using the grid package. The problem I have found is that you have