Displaying 20 results from an estimated 1000 matches similar to: "STL- TimeSeries Decomposition"
2003 Aug 21
2
Read date for timeserie object
Dear all,
Is there a simple trick to read in data with the following format and
create a Time Serie object of it?
Date CountOfField2
5/10/1998 7
5/11/1998 5
5/12/1998 2
5/14/1998 1
5/15/1998 1
5/19/1998 1
5/20/1998 1
5/21/1998 1
5/24/1998 2
5/25/1998 1
5/26/1998 2
....
2002
...
R should recognize that some dates are not available...(NA). You can
define start and end date Ok, and frequency= 365
2005 Feb 09
1
Plotting: Plot several axis at right hand side of the plot
Hi all,
I created a graph by plotting 4 time series on top of each other but don't
know how to add extra axes on the right hand side of the plot (or leftside).
For the first two time series it axis are plotted but the last two time
series don't have and axis. How can these be added and where?
e.g.
par(mfrow=c(1,1))
plot(timeserie1)
par(new=T)
plot(timeserie2,
2004 Mar 20
2
labels on axis(4) and adaptation of legend to size of the plot
Hi weekend R helpers,
*Is it possible to get a ylabel on the right hand side axis ==> axis(4)?
Thankx,
Jan
opar <- par(mfrow = c(2,1))
plot(ts.Origi[,1],ylab='NDII', main=name)
# Add the legend text in the right order
legend.txt <- c("NDII", "Inverse KBDI")
legend(2001.8,0.29, legend.txt,col=c(1,2), lty=1)
2005 Dec 07
2
Change labels of x-axes in Plot of stl() function?
Hi all,
How can the label of the x-axes in the plot() of a stl.object be adapted?
e.g.,
When plotting: plot(stl(nottem, "per"))
In the labels of the x-axes is “time”. How can this be changed to e.g.,
“Time (dekade) “?
It does not work with xlab or others anymore…
Thanks,
Jan
_______________________________________________________________________
Ir. Jan Verbesselt
Research
2011 Apr 21
2
Converting 16-bit to 8-bit encoding?
Hello all-
I have a question related to encoding. I'm using a seperate program which
takes either 16 bit or 8 bit (flat binary files) as inputs (they are raster
satellite imagery and the associated quality files), but can't handle both
at the same time. Problem is the quality and the image come in different
formats (quality- 8bit, image- 16bit). I need to switch the encoding on the
2004 Nov 26
1
Multi-figure plotting
Dear R-ians,
I have a question concerning plotting different plots on one figure. I
have written a script to plot an image, a legend (based on different
rectangles) and a timeseries plot on one figure.
In my R-lagnuage it looks like this (without arguments that are not
usefull for my question):
#---> I first define the functions
image.data<-function(...){
....
#-->Plot the
2012 Aug 03
1
SEM standardized path coefficients
Hello,
I have conducted an SEM in which the resultant standardized path coefficients are much higher than would be expected from the raw correlation matrix. To explore further, I stripped the model down to a simple bivariate relationship between two variables (NDVI, and species richness), where it's my understanding that the SEM's standardized path coefficient should equal the correlation
2018 Feb 08
2
Information
I have a time series of 1095 data corresponding to a daily data of three years.
I want to know how to use ma(timeserie, order=??, centre=??) to detect the trend:
which order is suitable and what is the difference between centre= true or false.
How to avoid these errors:
1-Error in timeserie - trend :
? argument non num?rique pour un op?rateur binaire="non-numeric argument for a binary
2012 Mar 08
2
KalmanSmooth
I have a bunch of clean timeseries data obtained from a sensor and I'd
like to apply a Kalman Filter to it to smoothe it out. Through a few
days of Googling, reading papers, implementing such a filter in
various languages, I finally realised that it may be built into R. So
I did a "??kalman" at the R prompt and found that it is indeed there.
However, the help page is a tad bare,
2011 Mar 11
0
Seasonality in STL Decomposition
I having issues with interpreting the results of STL decomposition. The
following is the data used as well as the decompsed seasonality, trend and
the remainder components. It is a weekly data.
The original data doesn't appear to be seasonal. But there seems to be a
periodic peak in the seasonal component. Can some one please let me know how
to interpret the seasonality plot in this???
Also,
2012 Nov 03
7
some help
Hi People!
I have following concern consisting of some steps to do in R:
I have an ascii file (table) consisting of many columns and rows.
1. I would like to order all values of the columns one under each other. It
will begin with column 1, then column 2 under column 1, column 3 under
column 2 etc. until at the end there is only 1 column. How do I do it?
2. Second problem is to make a
2012 Oct 16
2
gam (mgcv) problem: Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :, missing value where TRUE/FALSE needed
Hi All,
I'm running into a problem with GAM (in the MGCV package). When I try
to estimate the model, I get the following error message:
1> fit <-
gam(ndvi~s(rain)+s(temp)+s(rainl1)+s(rainl2)+s(rainxY)+s(rainl1xY)+s(rainl2xY)+s(tempxY),
data=dsub, weights=wvec)
Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :
missing value where TRUE/FALSE needed
Using
2009 Oct 09
4
Satellite ocean color palette?
Dear List,
Is there a color palette avaliable similar to what is used in satellite ocean color imagery? I.e. a gradient with blue on one end and red on the other, with yellow in the middle? I have tried topo.colors(n) but that comes out more yellow on the end. I am looking for something similar to what is found on the CoastWatch web page:
2005 Jul 27
5
HOW to Create Movies with R with repeated plot()?
Dear R-helpers,
Is it possible to create a type of 'movie' in R based on the output of
several figures (e.g., jpegs) via the plot() function. I obtained dynamic
results with the plotting function and would like to save these as a movie
(e.g., avi or other formats)?
Regards,
Jan
_________________________________________________________________
Ir. Jan Verbesselt
Research
2004 Apr 26
2
Spatial Autocorrelation for point data
Hi R helpers,
Is there a function (package?) in R available which tests "spatial
autocorrelation" between points (e.g. vector layer of weather stations)?
(e.g. Moran's I...)
Via the archives we found out that there is a package 'spdep' which uses
grid data for testing spatial autocorrelation.
Thanks a lot,
Jan
2001 Sep 06
2
Array as time series?
Dear R-helpers,
I have 4-dimensional atmospheric data (x,y,z,t), which I want to analyse
on spatio-temporal diversities.
As far as I understand there only exists the possibility to construct
time series as two-dimensional matrices (mts).
For the moment, I hold it in different objects:
1. a four-dimensional array for the spatial related analyses
2. a two-dimensional mts timeserie, which was
2017 Jun 22
2
MODISTools help - with reproducible examples
I am using the R-package MODISTools (different than MODIS) and am having a lot of difficulty troubleshooting my code. I have spent awhile going through MODISTools tutorials, searching for my error code, looking at the source code. However, I have not been able to find any relevant information related to my error message.
The study I am currently working on involves a herd of 200 African buffalo
2010 Oct 06
1
R getting slower until it breaks...
Hello R-users,
I'm currently facing a pretty hard problem which I'm hopping you'll be able to help me with. I'm using R to create images. That alone is not the problem, the problem is that I'm using R to create 168 000 images... My code (which is given below) use different package (raster and rgdal) to import a image (size 20gig) and divide it into 168 000 pictures that are
2005 Aug 22
1
How to add legend of plot.Design function (method=image)? (if (!.R.) )
Hi,
When running
z <- plot(fit, age=NA, cholesterol=NA, perim=boundaries, method='image')
Legend(z, fun=plogis, at=qlogis(c(.01,.05,.1,.2,.3,.4,.5)),
zlab='Probability')
And after pointing the cursor to the plot() screen in R, I obtain the
following message:
Using function "locator(2)" to place opposite corners of image.legend
Error in
2017 Jun 23
2
MODISTools help - with reproducible examples
I have and they have not yet replied - however that was only two or three days ago.
I have included a code example.
> On Jun 22, 2017, at 8:25 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>>
>> On Jun 22, 2017, at 4:44 PM, Caroline <gliddeca at science.oregonstate.edu> wrote:
>>
>> I am using the R-package MODISTools (different than