Christof,
You could use single linkage clustering to separate the dates into
different groups if they are more than 14 days apart. Below is a simple
example, where x represents day.
x <- sort(sample(1:500, 100))
y <- rnorm(100)
cluster <- hclust(dist(x), method="single")
group <- cutree(clust
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Christof Kluß
> Sent: Friday, October 26, 2012 1:42 PM
> To: r-h...@stat.math.ethz.ch
> Subject: [R] connect points in charts
>
> Hi
>
> is t
Hi
is there a automatic way that long distances between points are not
connected. I have something like
plot(x,y,type="o",...)
atx <- seq(as.Date("2009-04-01"),as.Date("2011-04-01"),"month")
axis.Date(1, at=atx,labels=format(atx, "%b\n%Y"), padj=0.5 )
but I do not want lines between points wh
3 matches
Mail list logo