Displaying 7 results from an estimated 7 matches for "plotfunct".
Did you mean:
plotfunc
2011 Jun 03
2
tkrplot Newbie
...tp://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tkrplot.html :
##
require(quantmod)
require(tcltk)
library(tkrplot)
Sys.setenv(TZ="GMT")
getSymbols("^GSPC", from = "1960-01-01")
Myhscale <- 2.5 # Horizontal scaling
Myvscale <- 1.25 # Vertical scaling
plotFunction <- function(x)
{
params <- par(bg="white")
plot(x,main="A time series")
par(params)
}
tt <- tktoplevel()
tkwm.title(tt,"Time Series")
img <- tkrplot(tt,fun=plotFunction((Cl(GSPC))),hscale=Myhscale,vscale=Myvscale)
tkgrid(img)
##
Althou...
2008 Nov 19
2
do.call and plotting functions ...
I'm trying to write a simple wrapper for plotting functions to make
them print to postscript, something like
ploteps <- function(file, plotFunction, ...) {
args <- list(bquote(...))
# prepare postscript device
do.call(plot, args)
# close postscript device
}
I have inserted the bquote otherwise I get a lot of numbers in the
plot when I plot/hist something. But if I invoke the function as
ploteps("foo.eps", hist, x...
2008 Nov 01
1
lapply item names
Dear all,
I am using lapply to generate plots by applying a plot function to a list of
dataframes. e.g.
lapply(dataSet, FUN = plotFunction)
Is there a way to call the list item number inside the plot function so that
I can identify each graph?
Thanks
Chibisi
[[alternative HTML version deleted]]
2009 Apr 14
1
using Sweave, how to save a plot in a given size
...realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
When I use par(pin=c(width,height)), I get the plot with the right size but saved in a too big pdf page (7in x 7in, the default size of the window).
So I tried to change the size of the window with the command windows() but then, Sweave can't save t...
2009 Apr 10
0
Sweave, how to save plots with a defined size and how to include several pdf pages on the same line
...ave, I just have to include all the pages of my document. The probleme is that I don't know how to set the size of my plots, so the size of the pdf page. The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-, noautoscale=TRUE]{figs/plot-partI}
And I have a second problem. Then I'd like to have several plots on the same line, that is to say several pdf pages inserted on the same line. I heard about the option column=TRUE but it doesn't work. Do you have any idea of...
2009 Apr 14
1
using Sweave, how to save a plot in a given size
...realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
The issue is that I have several plots created (but it's not always the same numbers of plots, in depends on the data), so I save them in a .pdf file automatically with Latex.
Each plot is on one page of the pdf file. And then, I include all the pa...
2007 Jul 17
2
Combine R2HTML and Rcmd BATCH?
Hi All,
I have an R script that spawns output in the form of an HTML page. This
is done by the R2HTML package.
Now I want to run the same script using Rcmd BATCH. However, it seems
that it is not possible to use R2HTML in this case.
My script ends with this error message:
#########################
Error in dev.print(png, file = AbsGraphFileName, width = Width, height =
Height, :
can only