Re: [R] OpenOffice ods spreadsheets in R?

2011-07-10 Thread Martin Rittner
to install OpenOffice on each and open it up each time I want to work on the data... Thanks to everyone for the quick and detailed reply! Martin On 10/07/11 02:13, David Winsemius wrote: On Jul 9, 2011, at 8:49 PM, Martin Rittner wrote: I would like to open OpenOffice (LibreOffice) .ods fi

[R] OpenOffice ods spreadsheets in R?

2011-07-09 Thread Martin Rittner
I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried the ROpenOffice package from omegahat, but unfortunately, the read.ods() function attempts to use the values of the first column in a worksheet as row names, and thus does not allow duplicates in there (which, even more u

Re: [R] Reading an ArcGIS raster file

2008-04-04 Thread Martin Rittner
I don't know too much about R myself, but a little about ArcGIS: As far as I know, the .aux files ArcGIS produces do not hold the actual data, but metadata. The actual file should have some other extension (dat, tif, hgz, img, csv... many more), but with rather small datasets the metadata may b

Re: [R] Thinking about using two y-scales on your plot?

2008-04-03 Thread Martin Rittner
Richie, A plot of the actual temperature during a year (or thousands of years, as people in palaeoclimate-studies are rather used to) is just so much more intuitive, than some correlation-coefficients or such. I know I'm largely speaking to statisticians in this forum, but in Earth Sciences, mo

Re: [R] Thinking about using two y-scales on your plot?

2008-03-27 Thread Martin Rittner
Hello all, I know I'm not making friends with this, but: I absolutely see the point in dual-(or more!)-y-axis plots! I find them quite informative, and I see them often. In Earth-Sciences (and I very generously include atmospheric sciences here, as Johannes has given an example of a meteorologi

Re: [R] ggplot2: bug in geom_ribbon + log scale!?

2008-02-17 Thread Martin Rittner
the min and max aesthetics aren't being > correctly scaled. You can fix it by explicitly logging those values, > or I can send you the development version off list if you remind me of > your OS. > > Hadley > > On 2/17/08, Martin Rittner <[EMAIL PROTECTED]> wrote: > &

[R] ggplot2: bug in geom_ribbon + log scale!?

2008-02-17 Thread Martin Rittner
Hi everyone, Hadley, it seems there's a bug in geom_ribbon() when using it in a log-scaled plot: d<-data.frame(x=c(1:20),y1=rnorm(20)+3,y2=rnorm(20)+5) p<-ggplot() p<-p+geom_ribbon(data=d,aes(x=d[["x"]],min=d[["y1"]],max=d[["y2"]])) p<-p+geom_line(data=d,aes(x=d[["x"]],y=d[["y1"]]),colour="blue")

Re: [R] ggplot2 used in a function - variable scope/environment

2008-02-16 Thread Martin Rittner
opriate mapping > > * aes_string makes it easier to build up aesthetic mappings > programmatically - aes_string(x = names(data)[1], y = names(data)[c]) > > Does that help? > > Hadley > > On Fri, Feb 15, 2008 at 2:21 PM, Martin Rittner > <[EMAIL PROTECTED]> wro

[R] ggplot2 used in a function - variable scope/environment

2008-02-15 Thread Martin Rittner
Hi everybody! I'm trying to use ggplot2 to return a plot from a function (so I can add something or alter it then). Unfortunately, if I add a mapping to a layer in the function, the variable *name* is stored in the layer, rather than the variable's *value* - so that after the function returns