The R Project SVN R

Rev

Rev 59039 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 59687
Line 1... Line 1...
1
% File src/library/graphics/man/hist.POSIXt.Rd
1
% File src/library/graphics/man/hist.POSIXt.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2012 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{hist.POSIXt}
6
\name{hist.POSIXt}
7
\alias{hist.POSIXt}
7
\alias{hist.POSIXt}
8
\alias{hist.Date}
8
\alias{hist.Date}
Line 59... Line 59...
59
  \code{\link{seq.POSIXt}}, \code{\link{axis.POSIXct}}, \code{\link{hist}}
59
  \code{\link{seq.POSIXt}}, \code{\link{axis.POSIXct}}, \code{\link{hist}}
60
}
60
}
61
\examples{
61
\examples{
62
hist(.leap.seconds, "years", freq = TRUE)
62
hist(.leap.seconds, "years", freq = TRUE)
63
hist(.leap.seconds,
63
hist(.leap.seconds,
64
     seq(ISOdate(1970, 1, 1), ISOdate(2010, 1, 1), "5 years"))
64
     seq(ISOdate(1970, 1, 1), ISOdate(2015, 1, 1), "5 years"))
65
 
65
 
66
## 100 random dates in a 10-week period
66
## 100 random dates in a 10-week period
67
random.dates <- as.Date("2001/1/1") + 70*stats::runif(100)
67
random.dates <- as.Date("2001/1/1") + 70*stats::runif(100)
68
hist(random.dates, "weeks", format = "\%d \%b")
68
hist(random.dates, "weeks", format = "\%d \%b")
69
}
69
}