I see the problem, I fixed this bug for version 2.8 of TeachingDemos, but have not submitted the new version to CRAN yet (I thought that I had fixed this earlier, but apparently it is still only in the development version). An easy fix is to install version 2.8 from R-forge (install.packages("TeachingDemos", repos="http://R-Forge.R-project.org") and then it should work for you.
Sorry about not seeing this earlier. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > 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 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 subplot (from > TeachingDemos) > are not playing nicely together on my machine. sessionInfo(): > > sessionInfo() > #R version 2.13.2 (2011-09-30) > #Platform: x86_64-pc-mingw32/x64 (64-bit) > #other attached packages: > #[1] TeachingDemos_2.7 > > I'd really like to get this working on my machine as it seems to be > working > on yours. While I previously tried a simply example for the initial > forum > post, I'm curious if the real plot I'm trying to make works on your > machine. > Should you happen to have a spare moment and I'm not pushing my luck, > I've > attached 4 small data files, 1 text file containing the R commands I'm > trying to run (including 'layout' and 'subplot' called > "R_Commands_Plot_MT3D_Analytical_Comparison_For_Paper.txt"), and the > incorrect tiff output I'm getting on my machine. I've directed all > paths in > the R code to c:/temp/ so everything should quickly work if files are > dropped there. Should it work on your machine as we would expect, does > anything come to mind for how to fix it on my machine? > > Very Respectfully, > Eric > > http://r.789695.n4.nabble.com/file/n3926941/AnalyticalDissolvedSorbedCo > ncAt20PoreVols.txt > AnalyticalDissolvedSorbedConcAt20PoreVols.txt > http://r.789695.n4.nabble.com/file/n3926941/AnalyticalEffluentConcentra > tion.txt > AnalyticalEffluentConcentration.txt > http://r.789695.n4.nabble.com/file/n3926941/Conc_Breakthru_at_100cm.txt > Conc_Breakthru_at_100cm.txt > http://r.789695.n4.nabble.com/file/n3926941/Conc_Profile_20T.txt > Conc_Profile_20T.txt > http://r.789695.n4.nabble.com/file/n3926941/R_Commands_Plot_MT3D_Analyt > ical_Comparison_For_Paper.txt > R_Commands_Plot_MT3D_Analytical_Comparison_For_Paper.txt > http://r.789695.n4.nabble.com/file/n3926941/NonEquilibrium_ForPaper.tif > NonEquilibrium_ForPaper.tif > > -- > View this message in context: http://r.789695.n4.nabble.com/subplot- > strange-behavoir-tp3875917p3926941.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.