You can control the width and height of a plot in addPlot(), but you must use addPageBreak() to control the width and the height of the page. Here is a modification of the example provided in the help for rtf, ?RTF
library(rtf) myplot <- function() { par(mar=c(4, 4, 1, 1), cex=2) plot(rnorm(25), rnorm(25), pch=16, col=1:25) } rtf <- RTF("test_RTF-class.doc") addHeader(rtf, title="Example", subtitle="First page portrait, second page landscape") addPlot(rtf, plot.fun=myplot, width=4, height=4) addPageBreak(rtf, width=11, height=8.5) addPlot(rtf, plot.fun=myplot, width=9, height=6.5) done(rtf) Jean On Wed, Feb 13, 2013 at 12:52 AM, <bdeep...@ibab.ac.in> wrote: > > Hello All, > > I 'm trying to plot R graph in landscape orientation in a .rtf file. > i 'm using library(rtf) for this. > do we have any option in addPlot() function to rotate the orientation of > the rtf file? > > > > Thank you, > > > Deepthi BM > PGDB-10-10-04 > Institute of Bioinformatics and Applied Biotechnology > Biotech Park, Electronic City, Phase I, Bengaluru-560100 > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.