[R] Fitting distributions with fitdistr

2011-02-24 Thread Andrea Storto
Dear all, I am having troubles in using fitdistr() from MASS package to fit self-defined distributions. I try to use it in this simple example where I want to fit some data to a Gaussian+Flat distribution: gaussflat-function(x,sd,k){ res-x res[ abs(x) = k ] - dnorm(x[ abs(x) = k

[R] streamlines/vectors

2009-07-01 Thread Andrea Storto
Dear all, Does anyone know if there exist a R function in some package to compute streamlines given the two components of a vectorial field? Thanks in advance, Cheers Andrea __ R-help@r-project.org mailing list

[R] smoothed contour lines

2009-01-06 Thread Andrea Storto
Hi all, I'm trying to draw a contour plot with rounded (smoothed) contour lines instead of sharp angles; when the grid consists of only a few points in x- and y- axis, the resulting contour is in facts rather ugly since very sharp angles may appear. I did not find any way to do it, by using