View source: R/month.cal.agenda.R
month.cal.agenda | R Documentation |
The function could be used as adding events or tasks on the calendar figure (output by cal function in TeachingDemos pacakge) automatically.
month.cal.agenda(month =NULL, year = NULL, dayth, work, bg.col = "gray", ...)
month |
which month do you want to draw?
year |
which year do you want to draw?
dayth |
the order of events in one month.
work |
task array in which taskments are match with the dayth.
bg.col |
the background color of tasks which occupy in a monthly calendar.
... |
further arguments such as text color and size etc. passed to the text
function.
cal
library(TeachingDemos)
cal()
month.cal.agenda(dayth = c(1, 3, 5), work = c("Work","Playing games\n outside.",
"Go to field"), cex = 1.2, xpd = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.