Re: [R] subplot strange behavoir

2011-10-24 Thread Greg Snow
gt; From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of emorway > Sent: Friday, October 21, 2011 4:21 PM > To: r-help@r-project.org > Subject: Re: [R] subplot strange behavoir > > Hello Dr. Snow, > > With regard to your response from earl

Re: [R] subplot strange behavoir

2011-10-21 Thread emorway
Hello Dr. Snow, With regard to your response from earlier this month: When I copy and paste your code I get what is expected, the 2 subplots line up on the same y-value. What version of R are you using, which version of subplot? What platform? I'm still troubled by the fact that layout and sub

Re: [R] subplot strange behavoir

2011-10-05 Thread emorway
I tried this trick, and clearly things are not going in the right direction. It seems 'layout' is at the root of my frustration, so I can make two plots and marge them in adobe illustrator (or something similar). png("c:/temp/lookat.png",res=120,height=600,width=1200) layout(matrix(c(1,2),2,2,byr

Re: [R] subplot strange behavoir

2011-10-05 Thread emorway
Hello Greg, Session info is below. Running Win7 64-bit. I just upgraded my version of R and tried rerunning the code and got the same odd result. I, too, get an expected result when I create the plot in the R GUI. The problem crops up only when I try and create the plot in png() or tiff(). Pe

Re: [R] subplot strange behavoir

2011-10-05 Thread Greg Snow
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of emorway > Sent: Wednesday, October 05, 2011 1:40 PM > To: r-help@r-project.org > Subject: [R] subplot strange behavoir > > Hello, > > Below is

Re: [R] subplot strange behavoir

2011-10-05 Thread Sarah Goslee
Hi, I'm assuming you're using subplot() from Hmisc, but it's a good idea to specify. It's not subplot() that's causing the problem, it's layout, or rather the interaction between the two. This section run at the command line doesn't work: layout(matrix(c(1,2),2,2,byrow=TRUE),c(1.5,2.5),respect=T

[R] subplot strange behavoir

2011-10-05 Thread emorway
Hello, Below is some example code that should reproduce an error I'm encountering while trying to create a tiff plot with two subplots. If I run just the following bit of code through the R GUI the result is what I'd like to have appear in the saved tiff image: x<-seq(0:20) y<-c(1,1,2,2,3,4,5,4