[R] Automatic adjustment of axis ranges
Jim Lemon
bitwrit at ozemail.com.au
Fri Jul 19 14:06:14 CEST 2002
I had a look at this, and worked out most of a function to do it. There
are three things I haven't been able to figure out, however.
1) Getting the last N lines of the command history into a vector of
strings. I thought something like:
last.commands<-history(N)
would work, but no go. There doesn't seem to be a file that I can tail,
either.
2) Finding continuation lines by parenthesis matching. I thought this
would be easy, but split() doesn't seem to do what the help file says, viz.
"...in particular if split has length 0, x is split into single
characters." Trying the following:
split("abc","")
I get:
[[1]]
[1] "abc"
not:
[1] "a" "b" "c"
3) Once I have the last plot command as a string, suitably modified,
getting it to run.
Any suggestions?
Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list