Monday, 15 August 2011

r - Multiple filled.contour plots in one graph using with par(mfrow=c()) -



r - Multiple filled.contour plots in one graph using with par(mfrow=c()) -

i trying build graph consisting of 2-3 filled.contour plots next each other. color scale same plots, , 1 z value key plot. having difficulties par(mfrow=c(1,3))

example code:

x <- 1:5 y <- 1:5 z <- matrix(outer(x,y,"+"),nrow=5) filled.contour(x,y,z) filled.contour(x,y,z,color.palette=rainbow) z2 <- z z2[5,5] <- inf filled.contour(x,y,z2,col=rainbow(200),nlevels=200)

is possible stack 2-3 of these plots next each other 1 z value color key? can in gimp wondering if natively in r possible.

no not think possible in filled.contour.

although extensions have been written already. to found here, here , here , legend code here.

using codes produced:

r layout graph plot contour

No comments:

Post a Comment