search for: prettyd

Displaying 7 results from an estimated 7 matches for "prettyd".

Did you mean: pretty
2009 Dec 21
1
proposal for new axis.Date/axis.POSIXct
...15-minute chunks (since pretty() doesn't know about the minutes in an hour, etc). Generally the number of tick marks produced varies a lot, and there are a couple of strange cases: try plot(0:1 ~ as.POSIXct(paste(2002:2003,"-02-01",sep=""))) So, I've written a function prettyDate() that attempts to act like pretty(), but with dates and times. Like pretty, it takes arguments 'n' and 'min.n' which specify the desired and minimum number of ticks, respectively. http://pastie.org/751640 By the way, also listed there is an extension of trunc.POSIXt with extra...
2010 May 21
0
pretty.Date(): changes to axis() methods?
...rings for time steps of 1 day, 12 hours and 6 hours are different; and some different time steps are allowed, such as 10 minutes, 3 hours, 3 months... the full list of possible time steps and their current default format strings is listed at: http://svn.r-project.org/R/trunk/src/library/grDevices/R/prettyDate.R The current axis.Date / axis.POSIXt code, including format strings, is http://svn.r-project.org/R/trunk/src/library/graphics/R/datetime.R These settings reflect my personal choices, but are somewhat arbitrary. I would encourage R-core to make this function their own, by choosing default forma...
2010 May 19
1
pretty.Date(): new "halfmonth" time step
Hi R-devel / R-core In the new pretty() methods for Date and POSIXct https://svn.r-project.org/R/trunk/src/library/grDevices/R/prettyDate.R there is currently a "pretty" time step listed as "15 DSTdays"... but this actually doesn't line up well with months. Much better to implement directly what this is trying to do: i.e. to have a "halfmonth" time step. This is just the union of two "monthl...
2010 Sep 09
0
Plotting dates and grid lines on the X-Axis of xyplot
...theLegendLines <- 1:nCases==theObsCase myFill.color=c("red","orange","ForestGreen","black","blue","DodgerBlue")[pData$Stream] myPch.shape=c(23,24,21,22,15:19)[pData$Stream] theDates<-as.Date(pData$Days,origin=start) x.marks<-prettyDates(theDates, origin=start, by=xby) print(x.marks) xyplot(Value~theDates | Stream, data=pData, groups=Case, type=types, distribute.type=T, fill.color=myFill.color, pch.shape=myPch.shape, marks=x.marks, panel=function(x, y, fill.color, pch.shape, marks, ..., subscripts) { fill<-fill....
2024 Feb 08
2
round.Date and trunc.Date not working / implemented
>>>>> Ji?? Moravec >>>>> on Wed, 7 Feb 2024 10:23:15 +1300 writes: > This is my first time working with dates, so if the answer is "Duh, work > with POSIXt", please ignore it. > Why is not `round.Date` and `trunc.Date` "implemented" for `Date`? > Is this because `Date` is (mostly) a virtual class setup for a
2023 Apr 21
0
[Rd] R 4.3.0 is released
...mentally, a "POSIXlt" object may have an attribute "balanced" indicating if it is known to be filled or fully balanced. * Functions axis.Date() and axis.POSIXct() are rewritten to gain better default tick locations and better default formats by using prettyDate(). Thanks to Swetlana Herbrandt. * The mapping of Windows' names for time zones to IANA's 'Olson' names has been updated. When ICU is available (it is by default), it is used to get a mapping for the current region set in Windows. This can be overridden b...
2023 Apr 21
0
[Rd] R 4.3.0 is released
...mentally, a "POSIXlt" object may have an attribute "balanced" indicating if it is known to be filled or fully balanced. * Functions axis.Date() and axis.POSIXct() are rewritten to gain better default tick locations and better default formats by using prettyDate(). Thanks to Swetlana Herbrandt. * The mapping of Windows' names for time zones to IANA's 'Olson' names has been updated. When ICU is available (it is by default), it is used to get a mapping for the current region set in Windows. This can be overridden b...