[R] Relocating Axis Label/Title --2

2007-08-08 Thread Lorenzo Isella
, Lorenzo Isella [EMAIL PROTECTED] wrote: Dear All, I am experiencing some problems with relocating an axis title. I visited the following link before posting: http://tolstoy.newcastle.edu.au/R/help/05/05/5283.html But this is not entirely what I would like to do Consider the example below

[R] Optimized File Reading with R

2007-05-15 Thread Lorenzo Isella
Dear All, Hope I am not bumping into a FAQ, but so far my online search has been fruitless I need to read some data file using R. I am using the (I think) standard command: data_150-read.table(y_complete06000, header=FALSE) where y_complete06000 is a 6000 by 40 table of numbers. I am puzzled at

Re: [R] Optimized File Reading with R

2007-05-15 Thread Lorenzo Isella
: On Tue, 15 May 2007, Lorenzo Isella wrote: Dear All, Hope I am not bumping into a FAQ, but so far my online search has been fruitless I need to read some data file using R. I am using the (I think) standard command: data_150-read.table(y_complete06000, header=FALSE) where

Re: [R] Reasons to Use R

2007-04-06 Thread Lorenzo Isella
John Kane wrote: --- Lorenzo Isella [EMAIL PROTECTED] wrote: (4)finally, a list of the advantages for using R over commercial statistical packages. The money-saving in itself is not a reason good enough and some people are scared by the lack of professional support, though

[R] Reasons to Use R

2007-04-05 Thread Lorenzo Isella
Regards Lorenzo Isella __ 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] Numerical Recipes in R

2007-02-09 Thread Lorenzo Isella
Dear All, So far I have mainly used R for data analysis and simple numerics (integration of functions, splines etc...). However, I have recently been astonished at finding out that many things I thought were only achievable with Fortran or C can be done e.g. entirely using MatLab. When I try

[R] Double labels and scales

2007-02-02 Thread Lorenzo Isella
Dear All, Say you want to plot, on the same figure two quantities, concentration and temperature, both as function of the same variable. I'd like to be able to put a certain label and scale on the y axis on the left of the figure (referring to the temperature) and another label and scale for the

[R] Advice on Grid Data

2006-11-24 Thread Lorenzo Isella
Dear All, I would like to automate the analysis and plotting of data taken from a grid. Typically I deal with 2 spatial coordinates and a scalar f(x,y), but the spatial grid is not evenly spaced at all and usually given in this form: x y

Re: [R] Advice on Grid Data

2006-11-24 Thread Lorenzo Isella
On 24/11/06, Roger Bivand [EMAIL PROTECTED] wrote: On Fri, 24 Nov 2006, Lorenzo Isella wrote: Dear All, I would like to automate the analysis and plotting of data taken from a grid. Typically I deal with 2 spatial coordinates and a scalar f(x,y), but the spatial grid is not evenly

[R] How to Trace Back the Warning Messages

2006-11-02 Thread Lorenzo Isella
Dear All, I modified a script of mine to allow it to work with complex numbers. I now have some warnings of this kind: Warning messages: 1: imaginary parts discarded in coercion 2: imaginary parts discarded in coercion and so on. I would like to be able to find out where in the code something

[R] Automatic File Reading

2006-10-18 Thread Lorenzo Isella
Dear All, I am given a set of files names as: velocity1.txt velocity2.txt and so on. I am sure there must be a way to read them automatically in R. It is really taking me longer to read them than to analyze them. Anybody has a suggestion to help me out with this? Many thanks Lorenzo

[R] Fixing Variables in a Function

2006-10-14 Thread Lorenzo Isella
Dear All, I am working with functions of several variables, e.g. f(x,y,z). At some point, I would like to fix y and z and consider the resulting function of x only for numerical interation with the integrate routine. I know how to define a wrapper g-function() {f(x,y,z)} , but I could not get a

[R] Creating Movies with R

2006-09-22 Thread Lorenzo Isella
Dear All, I'd like to know if it is possible to create animations with R. To be specific, I attach a code I am using for my research to plot some analytical results in 3D using the lattice package. It is not necessary to go through the code. Simply, it plots some 3D density profiles at two

[R] R Matlab for Particle Tracking

2006-09-13 Thread Lorenzo Isella
Dear All, A question a bit outside statistics. In my group, a lot of people use Matlab for simple simulations of stochastic processes describing convection/diffusion problems (as long as the numerics does not get too expensive and one has to resort to C or Fortran). Leaving aside the theory, it

[R] Integration and Loop in R

2006-08-04 Thread Lorenzo Isella
Dear All, I have seldom needed to use loops in R, but now I need to code a loop with a stride different from one. In the R manual I downloaded I have the example: xc - split(x, ind) yc - split(y, ind) for (i in 1:length(yc)) { plot(xc[[i]], yc[[i]]); abline(lsfit(xc[[i]], yc[[i]])) }

[R] Colours in Lattice

2006-07-29 Thread Lorenzo Isella
Dear All, I am practicing with the image and wireframe (the latter in the lattice package) plotting tools. I am a bit puzzled by the colors I observe in some test plots I have been generating. Consider: rm(list=ls()) library(lattice) x - seq(-2*pi, 2*pi, len = 100) y - seq(-2*pi, 2*pi, len =

[R] CFD Plots in R and Other Things

2006-07-16 Thread Lorenzo Isella
Dear All, I am getting some data from fluid dynamics simulations (air mixing in a pipe, 2D axial symmetry, geometry described by a radial coordinate r and an axial coordinate z) which I'd like to plot and analyze with R. Think about slicing the cylinder along its axial direction to get a set of

[R] Latex-Style Characters in R

2006-06-15 Thread Lorenzo Isella
Dear All, I am starting to use R excellent graphical facilities to produce good-looking plots. However, I do not know yet how for use pedices/apices (e.g. when you write cm^3) and Greek letters (e.g. \sigma) which I really need now. Is there a special package to load? Could anyone post a simple

[R] Fitting Distributions Directly From a Histogram

2006-06-12 Thread Lorenzo Isella
Dear All, A simple question: packages like fitdistr should be ideal to analyze samples of data taken from a univariate distribution, but what if rather than the raw data of the observations you are given directly and only a histogram? I was thinking about generating artificially a set of data

[R] Distribution Fitting

2006-05-26 Thread Lorenzo Isella
Hi, I know this is a bit off-topic, but I am quite puzzled. I am going through several papers about aerosol physics and in this field you often have determine the parameters of a distribution to match your experimental data (one typically uses a Gaussian mixture). However, in many cases people

[R] Accessing The Output of NLS

2006-05-23 Thread Lorenzo Isella
Hi, Probably a trivial question: if you do type something like: out-nls( here goes the model ), then you can type out or summary(out) to see the fitted parameters, the quality of the fit etc... but what if you want to get the fitted parameters as a vector to re-use them straight away in the

[R] nls fitting

2006-05-21 Thread Lorenzo Isella
Dear All, I may look ridiculous, but I am puzzled at the behavior of the nls with a fitting I am currently dealing with. My data are: x N 1 346.4102 145.428256 2 447.2136 169.530634 3 570.0877 144.081627 4 721.1103 106.363316 5 894.4272 130.390552 6 1264.9111 36.727069