Replace x axis with label on weekdays
1 answer
Try adding an argument xaxt="n"
to plot command
and then:
wd <- weekdays(Sys.Date()+2:8)
axis(1, at=seq_along(wd), labels=wd, las=2)
If you really want the "weekday" x-axis label, you can prevent a conflict by setting xlab = "to yours plot
and manually setting the label with mtext
(see here )
+3
source to share