On 09/29/2012 11:33 PM, Sabine Dietmann wrote:
Hi All,
I wonder whether it is possible to use the plot function and reduce
the scales on both +/- quadrants, i.e.
plot the data from -15. -8 and 8..15 only.
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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.