function in order to plot the same graph to postscript and pdf
What are the myplot objects? Expressions or graphical objects that are printed?
The myplot is something like this: plot(x) text(foo) etc.
In any case, a good recommendation for this kind of stuff is to look at Sweave() in the utils package. I guess you're writing your thesis in LaTeX...and Sweave is a great possibility to mix LaTeX code and R code which for example generates both pdf and eps graphics.
Thanks, I will have a look on it. Ronny