[R] Resizing Graphic Device Windows
sarah.goslee at gmail.com
Mon Mar 15 19:00:46 CET 2010
Normally the command to create the device allows you to specify parameters
like width and height. pdf() has width, height and paper arguments.
Other than that, I'm not certain what you mean by:
to manually tinker with it to show everything in terms of tick marks and x/y
lims that you specify?"
You do give an example (thanks), but don't explain what you want to get
other than a US letter-sized page (the paper argument to pdf()).
On Mon, Mar 15, 2010 at 1:51 PM, Kindra Martinenko
<kmartinenko at gmail.com> wrote:
> Hi all,
> I have been struggling with this one. When creating graphic devices, how do
> you go about resizing the output device window automatically without having
> to manually tinker with it to show everything in terms of tick marks and x/y
> lims that you specify?
> I have tried the aspect="" function, but that seems to only stretch the data
> set one way or another, and not the actual window. Below is what I
> currently have for one of my graphs. I have 6 others just like it (using
> different datasets). And I am using Lattice to generate the charts. This
> is a barchart showing traffic volumes by day for an entire 31 day month. I
> would like to show as much data as possible in terms of the days, which
> means I need to have the window stretched. It would be nice to have each
> graphic generated to fit within a standard letter-sized 8 1/2 x 11 page.
> #Load Lattice
> #generate barchart, export to PDF file
> barchart(date.manrivnb, ylim=c(0,2200), xlim=c(1,31), scales=list(cex=2,
> y=list(tick.number=12), x=list(tick.number=31)), aspect=.5, col= "orange",
> main="Manbrin at River Rd N Northbound Volumes by Date", horizontal="FALSE",
> xlab="October, 2009", ylab="Volume")
> Thanks in advance!
More information about the R-help