month.cal.agenda: Add events or tasks on monthly calendar figure automatically

View source: R/month.cal.agenda.R

month.cal.agendaR Documentation

Add events or tasks on monthly calendar figure automatically

Description

The function could be used as adding events or tasks on the calendar figure (output by cal function in TeachingDemos pacakge) automatically.

Usage

month.cal.agenda(month =NULL, year = NULL, dayth, work, bg.col = "gray", ...) 

Arguments

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.

See Also

cal

Examples

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) 


liuguofang/figsci documentation built on Nov. 24, 2023, 1:45 p.m.