Re: [R] Time series (trend over time) for irregular sampling dates and multiple sites

2019-04-30 Thread Abs Spurdle
This is possibly off topic now... However, given that it involves mgcv, I think that it's relevant to R. > to test if there is a change over the years on the amount of debris in these locations and more specifically a change after the implementation of a mitigation strategy > My debris items per

Re: [R] Time series (trend over time) for irregular sampling dates and multiple sites

2019-04-30 Thread Abs Spurdle
> > My data has a few problems: (1) I think I will need to fix the effects of > > seasonal variation (Monthly) and (2) of possible spatial correlation > > (probability of finding an item is higher after finding one since they can > > come from the same ship). (3) How do I handle the fact that the

Re: [R] Time series (trend over time) for irregular sampling dates and multiple sites

2019-04-30 Thread Abs Spurdle
> My data has a few problems: (1) I think I will need to fix the effects of > seasonal variation (Monthly) and (2) of possible spatial correlation > (probability of finding an item is higher after finding one since they can > come from the same ship). (3) How do I handle the fact that the >

Re: [R] Surface plots....

2019-04-25 Thread Abs Spurdle
> Does anyone have a recommendation for the best package/function for doing > surface plots? > What I am looking for is one with a lot of functionality like easily rotate > the plot and so on. There is persp() and the rgl package, as Duncan has already mentioned. However (I'm probably biased

[R] (no subject)

2019-04-23 Thread Abs Spurdle
Note that your post has no subject line. I can't find it in my emails, which may explain why no one else has replied. > fo<-h~a+b*log(dbh)+c*(log(dbh))^2+1.3 I'm assuming that you want to fit a model with three parameters, a, b and c. This would be a linear model (linear in the parameters). I'm

Re: [R] Quantile Density Contours

2019-03-30 Thread Abs Spurdle
My R package, "probhat", provides plots of bivariate PDFs and bivariate CDFs, using kernel smoothing. Note that there is no bivariate quantile function, as such. Here's the vignette: https://cran.r-project.org/web/packages/probhat/vignettes/probhat.pdf This contains examples. Note that I'm not

[R] [R-pkgs] Introducing empirical: Probability Distributions as Models of Data

2018-12-03 Thread Abs Spurdle
hi all I would like to introduce my R package: empirical: Probability Distributions as Models of Data The description is: Computes continuous (not step) empirical (and nonparametric) probability density, cumulative distribution and quantile functions. Supports univariate, multivariate and

[R] Prevent Printing Function's Environment

2018-08-14 Thread Abs Spurdle
Hi All When you print a function constructed within a function, R prints it's environment. For example: > myfunction = function () + { f = function () NULL + attributes (f) = list (class="myfunction", myattribute=1) + f + } > myfunction.f = myfunction () > myfunction.f function ()