Dear colleges, I'm trying to combine a barplot and a plot in a single figure as follows:
data <- 1:6 t <- barplot(data, axes=F) par(new= T) plot(t, data, type="b")
However, as you can see in the example, the dots of the second plot do not fall in the midpoint of the bars in the first. Any trick for setting the 2 plots at the same scale?
I have unsuccessfully tried:
plot(t, data, type="b", xlim=c(0,7))
plot(t, data, type="b", xlim=c(min(t),max(t)))
(R 1.8.1, for Windows)
Thanks
Juli
-- Juli G. Pausas Centro de Estudios Ambientales del Mediterraneo (CEAM) C/ Charles R. Darwin 14, Parc Tecnologic, 46980 Paterna, Valencia, SPAIN Tel: (+ 34) 96 131 8227; Fax: (+ 34) 96 131 8190 mailto:[EMAIL PROTECTED] http://www.gva.es/ceam
GCTE Fire Network - http://www.gva.es/ceam/FireNetwork
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
