colClasses = c("NULL", "NULL", "character", "numeric"))
> lapply(filenames, read.zoo, header = TRUE, FUN = as.chron, sep = ",",
> colClasses = c("NULL", "NULL", "character", "numeric"))
>
> _
quot;numeric"))
lapply(filenames, read.zoo, header = TRUE, FUN = as.chron, sep = ",",
colClasses = c("NULL", "NULL", "character", "numeric"))
____________
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 29 S
On Wed, Sep 29, 2010 at 7:52 AM, Struve, Juliane
wrote:
> I will post the example again to see if its readable now. My question is why
> does read.zoo(file=filenames,) work and lapply(filenames, read.zoo,...)
> does not ? Since I am reading the same file in both statements I just do not
> k
On Tue, Sep 28, 2010 at 9:30 AM, Struve, Juliane
wrote:
>
> Hi,
>
> in this self-contained example the file the same error message appears as
> when I read in my original results files.
>
> library (zoo)
> library(chron)
> #generate example data
> Fish_ID=1646
> Date <- "01/01/2004 00:01:00"
>
_______
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 27 September 2010 23:32
To: Struve, Juliane
Cc: r-help@r-project.org
Subject: Re: [R] plotting multiple animal tracks against Date/Time
On Mon, Sep 27, 2010 at 5:38 PM, Struve, Juliane
wrote:
> Hello,
>
> thank you very
ttp://www.aquaticresources.org
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 27 September 2010 15:23
To: Struve, Juliane
Cc: r-help@r-project.org
Subject: Re: [R] plotting multiple animal tracks against Date/Time
On Mon, Sep 27, 2010 at 10:01 AM, Struve, Julian
On Mon, Sep 27, 2010 at 5:38 PM, Struve, Juliane
wrote:
> Hello,
>
> thank you very much for replying. The code yields an error message
>
> Error in strptime(x, format, tz = tz) : invalid 'x' argument
>
> But I can't see what's wrong with it, the Date/Time info is in the third
> column, format i
ste("Results",Fish_ID,sep="_"),index.column=3,header=TRUE,FUN=as.chron,sep=",")
#reads in data for each in Fish_ID
}
z <- na.approx(cbind(???), na.rm = FALSE)
plot(z)
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 24 September 2010 22:08
To: Struve,
On Mon, Sep 27, 2010 at 10:01 AM, Struve, Juliane
wrote:
> Hi,
>
> I am sorry that my question wasn not very clearly formulated. My real data
> comes in 47 .csv files, one for each of 47 individual, for example:
>
> "","Fish_ID","Date","R2sqrt"
> "1",1646,2006-08-18 08:48:59,0
> "2",1646,2006-08
_
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 23 September 2010 23:06
To: Struve, Juliane
Cc: r-help@r-project.org
Subject: Re: [R] plotting multiple animal tracks against Date/Time
On Thu, Sep 23, 2010 at 5:53 PM, Struve, Juliane
mailto:j.str...@imperial.ac.uk>> wrot
On Fri, Sep 24, 2010 at 4:16 PM, Struve, Juliane wrote:
> Hi again,
>
> when applying the code to my real data I need to deal with a large number
> of individuals and massive data sets. I am using the code below to read in
> the data for different individuals, and would like to create the
> "Line
ttp://www.aquaticresources.org/>
From: Gabor Grothendieck [ggrothendi...@gmail.com]
Sent: 23 September 2010 23:06
To: Struve, Juliane
Cc: r-help@r-project.org
Subject: Re: [R] plotting multiple animal tracks against Date/Time
On Thu, Sep 23, 2010 at 5:53 PM, Struve, J
...@gmail.com]
Sent: 23 September 2010 18:26
To: Struve, Juliane
Cc: r-help@r-project.org
Subject: Re: [R] plotting multiple animal tracks against Date/Time
On Thu, Sep 23, 2010 at 9:50 AM, Struve, Juliane
wrote:
> Dear list,
>
> I would like to create a time series plot in which the pat
On Thu, Sep 23, 2010 at 5:53 PM, Struve, Juliane wrote:
> Hello,
>
> thank you very much for replying. I have tried this, but I get error
> message
>
> "Error in .subset(x, j) : invalid subscript type 'list'" after
>
> z1 <- read.zoo(textConnection(Lines1), skip = 1, index = list(1, 2), FUN =
> dt
Include individual as a factor in your dataset, and use ggplot2:
library(ggplot2)
ggplot(aes(x=Date, y=Distance, color=Individual), data=data) + geom_line()
ought to do it.
Jonathan
On Thu, Sep 23, 2010 at 9:31 AM, Struve, Juliane wrote:
> Sorry for posting this questions twice, but my previo
On Thu, Sep 23, 2010 at 9:50 AM, Struve, Juliane
wrote:
> Dear list,
>
> I would like to create a time series plot in which the paths of several
> individuals are stacked above each other, with the x-axis being the total
> observation period of three years ( 1.1.2004 to 31.12.2007) and the y-axi
By range on the y-axis, do you mean distance? It would have to be if time is
on your x? Or am I misreading this?
You could just plot() with the data for your first individual, and then add
additional individuals after that using lines(), specifying a different
colour and/or line type for each indi
Sorry for posting this questions twice, but my previous question was
accidentally sent unfinished.
Dear list,
I would like to create a time series plot in which the paths of several
individuals are stacked above each other, with the x-axis being the total
observation period of three years ( 1
Dear list,
I would like to create a time series plot in which the paths of several
individuals are stacked above each other, with the x-axis being the total
observation period of three years ( 1.1.2004 to 31.12.2007) and the y-axis
being some defined range[min,max].
My data consist of Date/
19 matches
Mail list logo