Re: [R] memory problem for scatterplot using ggplot

2010-07-28 Thread Mark Connolly
On 07/28/2010 06:13 AM, Edwin Husni Sutanudjaja wrote: Dear all, I have a memory problem in making a scatter plot of my 17.5 million-pair datasets. My intention to use the ggplot package and use the bin2d. Please find the attached script for more details. Could somebody please give me any

Re: [R] print.trellis draw.in - plaintext (gmail mishap)

2010-07-13 Thread Mark Connolly
That helped. I continued to have issues with draw.in=vplayout(2,2)$name (I guess I still don't understand it use), but the following positions the plot on the grid where I want it. grid.newpage() pushViewport(viewport(layout=grid.layout(2,2))) vp - vplayout(2,2) pushViewport(vp)

Re: [R] print.trellis draw.in - plaintext (gmail mishap)

2010-07-12 Thread Mark Connolly
at 8:58 AM, Felix Andrews fe...@nfrac.org wrote: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Yes, please, reproducible code. On 10 July 2010 00:49, Mark Connolly wmcon...@ncsu.edu wrote: I am

[R] print.trellis draw.in

2010-07-09 Thread Mark Connolly
I am attempting to plot a trellis object on a grid. vplayout = viewport(layout.pos.row=x, layout.pos.col=y) grid.newpage() pushViewport(viewport(layout=grid.layout(2,2))) g1 = ggplot() ... g2 = ggplot() ... g3 = ggplot() ... p = xyplot() ... # works as expected print(g1, vp=vplayout(1,1))

[R] print.trellis draw.in - plaintext (gmail mishap)

2010-07-09 Thread Mark Connolly
I am attempting to plot a trellis object on a grid. vplayout = viewport(layout.pos.row=x, layout.pos.col=y) grid.newpage() pushViewport(viewport(layout=grid.layout(2,2))) g1 = ggplot() ... g2 = ggplot() ... g3 = ggplot() ... p = xyplot() ... # works as expected print(g1, vp=vplayout(1,1))

Re: [R] hdf5 package

2009-12-30 Thread Mark Connolly
I am having the same issue with the HDF5 package. I installed the latest hdf5 DLLs from HDFGroup. I also installed the HDFView application from the same. This was all done on Windows. The example in ?hdf5load can be used to test. The example works fine for saving and loading the

Re: [R] R echo code chunk runs off the page using Lyx and Sweav

2009-12-09 Thread Mark Connolly
I somehow missed the response posted by Ben Bolker. He is quite correct (happily for me!): \SweaveOpts{keep.source=TRUE} in your LaTeX code will (I think) keep whatever manual formatting you do, in all code chunks (or use keep.source=TRUE) for particular code chunks of concern This

Re: [R] R echo code chunk runs off the page using Lyx and Sweave

2009-11-12 Thread Mark Connolly
Ista Zahn wrote: options(width=n) is supposed to work, and does for me. I don't use Lyx though... -Ista On Tue, Nov 10, 2009 at 4:27 PM, Mark Connolly mark_conno...@acm.org wrote: I am not really sure where in the interactions this is handled, but I would like to keep echo-ed R code

[R] R echo code chunk runs off the page using Lyx and Sweave

2009-11-10 Thread Mark Connolly
I am not really sure where in the interactions this is handled, but I would like to keep echo-ed R code chunks from running past the right margin and off the page. I started with R and options(width=n), but this does not seem to do anything (in the context of a document -- line command works

[R] What is the best way to efficiently construct a data frame from multiple source files?

2009-10-29 Thread Mark Connolly
I have an arbitrary number of spreadsheets that I want to consolidate into a single data frame. The spreadsheets all have the same structure: location, depth1Reading, depth2reading, depth3reading, depth4reading, depth5reading The spreadsheets have their reading date in their file name.