multiple plots per page

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple plots per page

Bill Hunsicker
R-help,

I would like to place nine (3X3) plots per page.  I am not properly
implement mfrow(3,3) in the script below:

jpeg("xyplot.jpg") #names output file
my_args <- commandArgs() #sets up to take args from dos batch command
mfcol(3,3) #set page for 3X3
TEMPS <- c(-15,25,85)#list of temps
VBATS <- c(3,3.6,4.7)#list of Bats
BOARDS <- c("YZ0DC","ZD0DC","0E0DC","2E0DC","3E0DC")#list of boards
#load the xtal data into "all" with formatting for memory saving
all <- read.csv(my_args[3], colClasses=c('factor',
rep('integer',3),'numeric', 'numeric',
'numeric', 'integer', 'integer', 'integer', 'numeric', 'factor',
'factor',
rep('integer', 5), 'numeric', 'integer', 'numeric'))
#get data by board and temp and voltage
for( T in TEMPS)
   for(V in  VBATS)
      for(B in BOARDS)
       {
        board <- subset(all,(Temperature==T && BoardNumber == B &&
PS13==V))
           plot((board$FineTuneDACStep * board$ArrayID),board$OutpFreq)
       }

Can you help me?  

Regards,
Bill

Bill Hunsicker
RF Micro Devices
7625 Thorndike Road
Greensboro, NC  27409
336-678-5260
610-597-9985(m)

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: multiple plots per page

Earl F. Glynn
"Bill Hunsicker" <[hidden email]> wrote in message
news:[hidden email]...
> R-help,
>
> I would like to place nine (3X3) plots per page.  I am not properly
> implement mfrow(3,3) in the script below:

Does this help?

jpeg("3x3.jpg")
oldpar <- par( mfcol=c(3,3) )
plot(1)
plot(2)
plot(3)
plot(4)
plot(5)
plot(6)
plot(7)
plot(8)
plot(9)
par(oldpar)
dev.off()

efg

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Multiple plots per page

Bill Hunsicker
In reply to this post by Bill Hunsicker
R-help,
 
I am trying to run a number of plots and want to generate 45 plots with
9 pages per plot.
 
I sent an email about four hours ago, but my email has been funky, I
apologize in advance if this message is duplicate.
 
Regards,
Bill
 



Bill Hunsicker
RF Micro Devices
7625 Thorndike Road
Greensboro, NC 27409-9421
[hidden email]
336-678-5260(w)
610-597-9985(m)
336-678-5088(lab)


 

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html