[R] Combine R2HTML and Rcmd BATCH?

2007-07-17 Thread Dieter Vanderelst
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 print from screen device

Execution halted
#

I can not find how to work around this problem in the R2HTML manual or 
the help archives.

Has anybody done a similar thing before? Any suggestions?

Greetings,
Dieter

-- 
Dieter Vanderelst
[EMAIL PROTECTED]
Department of Industrial Design
Designed Intelligence

__
R-help@stat.math.ethz.ch 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.


[R] Combine graphical and textual output

2007-07-02 Thread Dieter Vanderelst
Hi,

I would like to know whether anybody knows a simple way to combine 
textual and graphical output in R.

A typical analysis produces textual output (e.g. model fits) and plots 
in R. I would like to know whether R has the possibility of combining 
these into a single 'report' or output. An example of a program that 
does this is SPSS. After running the analysis you have a combination of 
textual output (tables) and plots that are easy to print and distribute.

I know of the possibility to embed R code into LATEX (using Sweave), but 
I wouldn't call this quick since a lot of coding will go into writing 
the Sweave file.

Any other suggestions?

Regards,
Dieter

__
R-help@stat.math.ethz.ch 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.


[R] prior covariance in Mclust

2007-06-28 Thread Dieter Vanderelst
Hello,

I'm trying to use Mclust to fit a Gaussian Mixture Model to a
mulitdimensional data set.

Because  of the specific source of my data, I know that all components
have the same variance and that the covariance between dimensions is
zero (modelname=VII).
Furthermore, I have a reliable estimate of the variance of the components.

I want to to use this estimate as a prior in mclust, hoping that
exploiting this knowledge will yield better estimates of the number of
components and their means (which are the unknowns).

First I have a general question: Is this a sensible thing to do? As
far as I can see (which might be not too far), this will indeed lead
to more robust estimates. But is this true?

Another question concerns the practical side of things. How can I do
this in mclust? I've read through the manual but this leaves me
uncertain about the exact implementation (and earlier posts about this
problem seem not to have been answered by the mailing list).

If specifying a prior for the covariance matrix is possible (and
sensible) in mclust, could someone provide an example of how to
specify a prior on the covariance matrix?

Thank you,
Dieter

__
R-help@stat.math.ethz.ch 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.


[R] Smoothing a path in 2D

2007-05-30 Thread Dieter Vanderelst
Hello,

I'm currently trying to find a method to interpolate or smooth data that
represent a trajectory in space.

For example, I have an ordered (=time) set of (x,y) tuples which
constitute a path in a 2D space.

Is there a way using R to interpolate between these points in a way
similar to spline interpolation so that I get a smooth path in space?

Greetings,
Dieter

-- 
Dieter Vanderelst
[EMAIL PROTECTED]
Department of Industrial Design
Designed Intelligence

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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.