[R] Same y-axis on multiple plots?

Andreas Bergstrøm andreas.bergstrom at hiof.no
Tue Jan 26 11:14:33 CET 2010


On 26. jan. 2010, at 11:07, Jim Lemon wrote:

> On 01/26/2010 01:52 AM, Andreas Bergstrøm wrote:
> Hi Andreas,
> I didn't see an answer to your question, so I'll suggest that you take these warnings seriously:
> 
> Warning messages:
> 1: In plot.window(...) : "ylim.max" is not a graphical parameter
> 2: In plot.xy(xy, type, ...) : "ylim.max" is not a graphical parameter
> 3: In title(...) : "ylim.max" is not a graphical parameter
> 
> and try this:
> 
> plot(str,type="b",main=mymain,xlab=myxlab,ylab=myylab,lwd=2,
> axes=F,ylim=c(0,600))


Thank you. I got two replies offlist where the gist was the same as your reply, and it now works.
I see now that I don't get those warnings when I run R though pl/R in postgresql, so I'll try running it through the R binary next time I am stuck.

Thank you for your assistance.

--
Andreas Bergstrøm
Østfold University College
Dept. of Computer Sciences
Tel: +47 69 21 53 71
http://media.hiof.no/



More information about the R-help mailing list