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 c

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

2010-07-13 Thread Mark Connolly
raw.in = vp$name) -Felix On 13 July 2010 01:22, Mark Connolly wrote: require("grid") require("lattice") fred = data.frame(x=1:5,y=runif(5)) vplayout<- function (x,y) viewport(layout.pos.row=x, layout.pos.col=y) grid.newpage() pushViewport(viewport(layout=grid.layout(2,2)))

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

2010-07-12 Thread Mark Connolly
$name) On Mon, Jul 12, 2010 at 8:58 AM, Felix Andrews 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 20

[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)) print

[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)) print

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 structure,

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 infor

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 wrote: I am not really sure where in the interactions this is handled, but I would like to keep echo-ed R code chunks from ru

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

2009-11-10 Thread Mark Connolly
for Lyx. 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 wrote: I am not really sure where in the interactions this is handled, but I would like to keep echo-ed R code chunks from ru

[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 j

[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. This