Skip to content

Savitzky-Golay smoothing for reflectance data

4 messages · Andersson, Henrik, Giampiero Salvi, Jesus Frias

#
Hi all,
I'd like to generate a number of plots to compare different
vectors I have stored in a list. To do this I do something like
(in a linux system):

for(i in 1:L) {
 X11()
 plot(listOfFunctions[[i]])
}

First question is: is this the right way to create several plots (in
different windows) ?
Second question: what are the corresponding commands for the matlab
'figure(n)' to activate a certain figure and 'close(1:n)' to close
several figures at once?

Thank you,
Giampiero
#
Don't need to answer to my previous post: I found the functions in the
meantime:

     dev.cur()
     dev.list()
     dev.next(which = dev.cur())
     dev.prev(which = dev.cur())
     dev.off(which = dev.cur())
     dev.set(which = dev.next())
     graphics.off()

Thanks anyway,
Giampiero
On Thu, 5 Feb 2004, Giampiero Salvi wrote:

            
#
Hi,
	Quote:

	"The Savitzky-Golay smoothing turns out to be exactly equivalent to fitting
data to a polynomial as described" (Skoog, Holler and Nieman, Principles of
Instrumental Analysis, pp 111)

	While R is not a tool for instrumental analysis, I am sure you can find
smoothing methods that will suit your problem in R (there are plenty of
them). There is a thread on this topic on this from March 2003 where Andy
Liaw points to the KernSmooth package.

http://maths.newcastle.edu.au/~rking/R/help/03a/2995.html

all the best,

Jesus

--------------------------------------------------------------
Jes?s Mar?a Fr?as Celayeta
School of Food Sci. and Env. Health.
Faculty of Tourism and Food
Dublin Institute of Technology
Cathal Brugha St., Dublin 1. Ireland
Phone: +353 1 4024459 Fax: +353 1 4024495
http://www.dit.ie/DIT/tourismfood/science/staff/frias.html
--------------------------------------------------------------
http://www.R-project.org/posting-guide.html

--
This message has been scanned for content and
viruses by the DIT Information Services MailScanner
Service, and is believed to be clean.
http://www.dit.ie