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
library(lattice)

#generate barchart, export to PDF file
pdf("../manrivnb.pdf")
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")
dev.off()

Thanks in advance!

-Kindra

	[[alternative HTML version deleted]]

