s-news
[Top] [All Lists]

Axis at the same scale

To: s-news@lists.biostat.wustl.edu
Subject: Axis at the same scale
From: Tristan Lorino <tristan.lorino@lcpc.fr>
Date: Mon, 30 Jan 2006 11:28:45 +0100
Organization: LCPC
Reply-to: Tristan Lorino <tristan.lorino@lcpc.fr>
Hi,

I would like to plot 8 plots at the same y-axis scale (in order to compare
them), e.g. with the same y-axis ranging from 0.6 to 2. When I specify:

#plot 1: two curves
par(mfrow=c(4,2))
plot(...,axes=F)
axis(1)
axis(2,at=c(.6,.8,1,1.2,1.4,1.6,1.8,2),c("0,60","0,80","1,00","1,20","1,40","1,60","1,80","2,00"),adj=.8)
points(...,col=2)
box()
#plot 2: two curves
plot(...,axes=F)
axis(1)
axis(2,at=c(.6,.8,1,1.2,1.4,1.6,1.8,2),c("0,60","0,80","1,00","1,20","1,40","1,60","1,80","2,00"),adj=.8)
points(...,col=2)
box()

etc.

S-Plus doesn't respect my instruction: it plots different y-axis,
according to different scales... How can I change this?

Thank you,
Tristan Lorino


-- 
Laboratoire Central des Ponts et Chaussées
[Division ESAR ? Section AGR]
Route de Bouaye BP 4129
44341 Bouguenais Cedex
France
Tél 33 (0)2 40 84 56 18
Fax 33 (0)2 40 84 59 92


<Prev in Thread] Current Thread [Next in Thread>