Skip to content
Prev 306617 / 398503 Next

plot selected scales on +/- axes

On 09/29/2012 11:33 PM, Sabine Dietmann wrote:
Hi Sabine,
As David noted, you might want gap.plot:

library(plotrix)
testdat<-c(sample(-15:-8,6),sample(8:15,6))
gap.plot(testdat,gap=c(-7,7),
  main="Gap on Y axis")
gap.plot(testdat,rnorm(12),gap=c(-7,7),
  main="Gap on X axis",gap.axis="x")

Jim