i have a problem with clustering time series in R. I googled a lot and found nothing that fits my problem.
I have made a STL-Decomposition of Timeseries. The trend component is in a matrix with 64 columns, one for every series. Now i want to cluster these series in simular groups, involve the curve shapes and the timely shift. I found some functions that imply one of these aspects but not both.
First i tried to calculte a distance matrix with the dtw-distance so i found clusters based on the values and inply the time shift but not on the shape of the timeseries. After this i tried some correlation based clustering, but then the timely shift we're not recognized and the result dont satisfy my claims.
Is there a function that could cover my problem or have i to build up something on my own. Im thankful for every kind of help, after two days of tutorials and examples i totaly uninspired. I hope i could explain the problem well enough to you.
I attached a picture. Here you can see some example time series. There you could see the problem. The two series in the middle are set to one cluster, although the upper and the one on the bottom have the same shape as one of the middle.