search for: basicplot

Displaying 1 result from an estimated 1 matches for "basicplot".

2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
...utines, to sort of work. "\Sexpr{}" will not work because the R code I want to use over and over is in the R environment. I've tried numerous ways to tackle this process and could really use some help. If there is some easier way to do this please let me know! This is the R function: basicplot <- function(x, nplots, sectionname){ # Begin to make figure here file = paste("scatter",nplots, ".pdf", sep="") pdf(file = file,paper="special", width=6, height = 6) plot(x) dev.off() cat("\\begin{figure}\n") cat("\\includegraphics{",fi...