[R] Change the default resolution for plotting figures?

2013-04-16 Thread jtang
Hi, I want to save a plot in the windows device as png and the default resolution is 72dpi. Is it possible to increase the default resolution to for example 300 dpi? I have thought of using function png(..., res=300), but the problem is that the figure produced this way looks different than

[R] Find the functional relationship between two variables in R?

2013-01-10 Thread jtang
Hi, I have two variables x and y and the functional relationship between x and y is like: y=x^2+log(x). My question is that is it possible to apply some method to reconstruct the functional form based on the training data that is generated from it? I understand that there are many methods

[R] using wildcards in download.file?

2012-04-12 Thread jtang
Hi, Do you know whether it is possible to use wildcards in download.file()? For example: url = "ftp://abc.com/*.*"; # to download all the files in the ftp folder download.file(url,destfile=...) # does not work, any solutions? Thanks! JIng __ R-help@r-