Displaying 2 results from an estimated 2 matches for "figfun".
Did you mean:
digfun
2007 Mar 22
2
unexpected behavior of trellis calls inside a user-defined function
...he information (main title,
placement of additional points) from my i-th function call is leaking
over into the i+1-th call. In the example below, I just get
unexpected results. In my actual application, it breaks the whole
function and one of the error messages I've gotten is:
> figFun(smoothFit1) ## no longer worked, once I got fancy with trellis
Error in depth(path) : no applicable method for "depth"
Smallest example I could construct to illustrate at least one of my
problems:
predVals <-
expand.grid(list(Sepal.Length = seq(from = min(iris$Sepal.Length),...
2012 Oct 30
1
print and execute functions in a package namespace
Let's say I have a package that consists of a set of functions, fig1(),
fig2(), fig3() ..., each of which
produces a plot, and perhaps some printed output, e.g.,
fig1 <- function() plot(1:10)
fig2 <- function() plot(10:1)
fig3 <- function() {y<-sample(1:10,10); plot(y); y}
I'd like to produce a document (PDF or HTML) containing the listing of
each function and its output,