[R] R equivalent to Matlab spline(x,y,xx)

2007-02-06 Thread Maria Vatapitakapha
Hello

I am currently translating some Matlab code into R and would like to know
what people would recommend as the equivalent in R for spline(x,y,xx) in
matlab. The latter performs a cubic spline interpolation where x,y are the
given data vectors and xx is the new abscissa vector.
It allows for the definition of end conditions in y, which is very useful.
I tried using spline and splinefun from the splines R package but I cannot
see how to specify the endslopes in this case and I get different results
than I do with matlab, as the curve seems to lift over the max value and
then drop to the max value in the end.

Any help would be much appreciated

[[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.


[R] matlab style plotting in R

2007-02-13 Thread Maria Vatapitakapha
Hello

I was wondering how I can achieve matlab style plotting in R,
in the sense that matlab allows you to plot multiple sets of variables
within the same
x-y axes. plot in R does not seem to cater for this. I tried 'overplot' from
the gplots package but this assumes different y axes for the variables.

any suggestions would be very appreciated

Maria

[[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.