Dear all I was trying to put a title for my plot, but i got this result,> x11(width=10,height=5,title="seedling");par(mfrow=c(1,2))Error in x11(width = 10, height = 5, title = "seedling") : unused argument(s) (title = "seedling")>The title is not taking How can i give a title for the plot (where in need to make 2 plots within a window of x11() ) thanking you in anticipation Warm regard MS Nepal _________________________________________________________________ WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009 [[alternative HTML version deleted]]
On Wed, 28 Oct 2009, ms.com wrote:> > Dear all > I was trying to put a title for my plot, but i got this result, > >> x11(width=10,height=5,title="seedling");par(mfrow=c(1,2))Error in x11(width = 10, height = 5, title = "seedling") : unused argument(s) (title = "seedling")> > The title is not taking > > How can i give a title for the plot (where in need to make 2 plots within a window of x11() ) > > thanking you in anticipationAre you perchance x11() on Windows, when you should be using windows()? The posting guide asked you to tell us your OS, amongst other things .... x11() and X11() on Windows do not have a 'title' argument, as the help file shows, but windows() does.> > Warm regard > MS > Nepal > _________________________________________________________________ > > > WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009 > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.PLEASE do read it. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
The general way to create a title for multiple plots on the same page is to first create some room for the title by setting the outer margins (using par(oma=...)), then use mtext or title with the outer=TRUE argument to place the overall title. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of ms.com > Sent: Wednesday, October 28, 2009 3:47 AM > To: R Help > Subject: [R] x11(title=' ') > > > Dear all > I was trying to put a title for my plot, but i got this result, > > > x11(width=10,height=5,title="seedling");par(mfrow=c(1,2))Error in > x11(width = 10, height = 5, title = "seedling") : unused argument(s) > (title = "seedling")> > The title is not taking > > How can i give a title for the plot (where in need to make 2 plots > within a window of x11() ) > > thanking you in anticipation > > Warm regard > MS > Nepal > _________________________________________________________________ > > > WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009 > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.