Re: [R] Zoo plotting behavior

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 02 Jul 2008 10:56:05 -0400

I can't tell what you are doing from that description. See last line to every message to r-help.

It should be possible to copy your code and just paste it into a running R session and see the problem If there is interaction give detailed descriptions.

On Wed, Jul 2, 2008 at 10:42 AM, stephen sefick <ssefick_at_gmail.com> wrote:
> sorry, I am still trying to figure R out. window worked just fine with
> chron, but when I use
>
> d <- locator()
> as.chron(d)
>
> it returns results that are not consistent with the plot do I need to put in
> the format argument. I am still trying to figure out these date time
> classes.
>
> On Wed, Jul 2, 2008 at 10:31 AM, Gabor Grothendieck
> <ggrothendieck_at_gmail.com> wrote:
>>
>> Seems to be there:
>>
>> > library(zoo)
>>
>> > methods(window)
>> [1] window.default* window.ts* window.zoo*
>>
>> Non-visible functions are asterisked
>>
>> > packageDescription("zoo")$Version
>> [1] "1.5-2"
>>
>> On Wed, Jul 2, 2008 at 10:08 AM, stephen sefick <ssefick_at_gmail.com> wrote:
>> > R 2.7.1 windows xp and version of zoo upgraded with new installation of
>> > R
>> > 2.7.1 yesterday from CA1 mirror
>> > window.zoo is not there?
>> >
>> > On Wed, Jul 2, 2008 at 10:00 AM, Gabor Grothendieck
>> > <ggrothendieck_at_gmail.com> wrote:
>> >>
>> >> ?plot.zoo and the zoo faq vignette have examples of custom axes.
>> >> In the case of chron, the axes are done by chron:::axis.times in
>> >> the chron package.
>> >>
>> >> On Wed, Jul 2, 2008 at 9:32 AM, stephen sefick <ssefick_at_gmail.com>
>> >> wrote:
>> >> > Like for instance that the xlim is small enough where the plot is
>> >> > showing
>> >> > the day instead of the year (I believe). Now that I have figured
>> >> > this
>> >> > out
>> >> > (I think). I would like to know if there is a way to tell plot.zoo
>> >> > how
>> >> > to
>> >> > print the date ranges easily. When I did the example in my previous
>> >> > email
>> >> > only 9/09 showed up. I am trying to close in on widows of data and
>> >> > need
>> >> > a
>> >> > little more resolution on the x-axis. For instance when I am inside
>> >> > of
>> >> > a
>> >> > month of data the month day- inside of a day the day time or
>> >> > something
>> >> > like
>> >> > this.
>> >> > Any thoughts would be appreciated
>> >> >
>> >> > Stephen
>> >> > On Wed, Jul 2, 2008 at 9:25 AM, stephen sefick <ssefick_at_gmail.com>
>> >> > wrote:
>> >> >
>> >> >> I have a matrix with data that runs from 1/1/06 00:01:00-1/31/08
>> >> >> 23:46:00.
>> >> >> I have read in the data with this
>> >> >>
>> >> >> fmt.chron <- function(x) {
>> >> >> chron(sub(" .*", "", x), gsub(".* (.*)", "\\1:00", x))
>> >> >> }
>> >> >>
>> >> >> x <- read.zoo(file.choose(), sep=",", header=T, FUN=fmt.chron)
>> >> >>
>> >> >> plotted with this
>> >> >> plot(x[,(seq(3, by=9, length.out=12))], xlim=c(chron("9/01/2006",
>> >> >> "00:01:00"), chron("1/31/2007", "12:46:00")))
>> >> >>
>> >> >> and I was excited to be able to plot subsets with date and it worked
>> >> >> it
>> >> >> worked fine until I put in the above and the axis displays 9/09, but
>> >> >> still
>> >> >> seems to plot the data when I change the xlim.
>> >> >> Thank you very much
>> >> >>
>> >> >> Stephen
>> >> >> I can provide data - I am doing a dry run to see if there is
>> >> >> something
>> >> >> glaringly obvious that I am missing
>> >> >> --
>> >> >> Let's not spend our time and resources thinking about things that
>> >> >> are
>> >> >> so
>> >> >> little or so large that all they really do for us is puff us up and
>> >> >> make us
>> >> >> feel like gods. We are mammals, and have not exhausted the annoying
>> >> >> little
>> >> >> problems of being mammals.
>> >> >>
>> >> >> -K. Mullis
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Let's not spend our time and resources thinking about things that are
>> >> > so
>> >> > little or so large that all they really do for us is puff us up and
>> >> > make
>> >> > us
>> >> > feel like gods. We are mammals, and have not exhausted the annoying
>> >> > little
>> >> > problems of being mammals.
>> >> >
>> >> > -K. Mullis
>> >> >
>> >> > [[alternative HTML version deleted]]
>> >> >
>> >> > ______________________________________________
>> >> > R-help_at_r-project.org mailing list
>> >> > https://stat.ethz.ch/mailman/listinfo/r-help
>> >> > PLEASE do read the posting guide
>> >> > http://www.R-project.org/posting-guide.html
>> >> > and provide commented, minimal, self-contained, reproducible code.
>> >> >
>> >
>> >
>> >
>> > --
>> > Let's not spend our time and resources thinking about things that are so
>> > little or so large that all they really do for us is puff us up and make
>> > us
>> > feel like gods. We are mammals, and have not exhausted the annoying
>> > little
>> > problems of being mammals.
>> >
>> > -K. Mullis
>
>
>
> --
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make us
> feel like gods. We are mammals, and have not exhausted the annoying little
> problems of being mammals.
>
> -K. Mullis



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 02 Jul 2008 - 15:52:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 16:30:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive