monthLabs | R Documentation |
Create dates of certain days of the month for labeling
monthLabs(startyear = 2002, stopyear = 2018, npm = 2, npy = NA)
startyear |
Integer. starting year. DEFAULT: 2002 |
stopyear |
Integer. ending year. DEFAULT: 2018 |
npm |
Integer, one of 1,2,3,6 or 31. Number of labels per month. DEFAULT: 2 |
npy |
Integer, one of 1,2,3,4 or 6. Number of labels per year at equally spaced month-beginnings. If specified, npm is not considered at all. DEFAULT: NA |
Vector with Dates as returned by as.Date
.
Spacing of days is not equal, but set to certain days of the month! This was originally developed for time series movie frames
Berry Boessenkool, berry-b@gmx.de, early 2013
timeAxis
for nice labeling,
timeAxis
for automatic determination of npm/npy,
as.Date
, paste
monthLabs(2014,2014, 3) # 3 days per month
monthLabs(2013,2014, npy=3) # 3 months per year, equally spaced
monthLabs(2014,2014, npy=4) # 4 months per year
# see monthAxis for automatic plot labeling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.