Re: [R] Conditional plot labels

2009-04-30 Thread Greg Snow
Here is one example that moves the axes to the outer margins, play with the different settings to see the effects: par(oma=c(3,3,3,3)+.1, mar=c(0,0,0,0)+0.1, mfrow=c(3,3)) for (i in 1:9) { plot( runif(10*i), runif(10*i), ann=FALSE, xlim=c(0,1), ylim=c(0,1), xaxt='n', yax

Re: [R] Conditional plot labels

2009-04-26 Thread baptiste auguie
Hi, Have you considered using high-level plotting functions provided by the ggplot2 or lattice package? Here's a dummy example, x <- seq(0, 10, length=100) y1 <- sin(x) y2 <- cos(x) y3 <- x^2/100 y4 <- 1/x d <- data.frame(x, y1, y2, y3, y4) library(reshape) dm <- melt(d, id="x") dm$type1