css格式化⽇期,使⽤ggplot2中的scale_x_date格式化⽇期在ggplot2的以前版本中,我能够使⽤以下两个命令之⼀来格式化我的x个⽇期:
或者
scale_x_date(breaks = "1 month",minor_breaks = "1 week",labels=(date_format="%B")) +
要么
scale_x_date(major="months",minor="weeks",format="%B") +
以⽣成“%B”格式的完整⽉份名称。
(恐怕我不能再区分哪⼀个⼯作,因为他们都被注释掉了。)
我不记得什么时候,但更新R或ggplot在ubuntu 12.04升级后,这不再为我⼯作。现在,⾮常相同的数据产⽣错误:
Error in inuous(scale) :
Breaks and labels are different lengths
与第⼀,和蹦蹦哥
接电话Error in continuous_scale(aesthetics,"date",identity,breaks = breaks,:momentum
unud argument(s) (major = "months",minor = "weeks",format = "%B")
与第⼆。
如果我删除labels =参数,并应⽤
长脸适合什么发型scale_x_date(breaks = "1 month",minor_breaks = "1 week") +
它在每个⽉的第⼀天⽣成⽇期格式为“YYYY-MM-DD”。
pawn咨询与功能的帮助scale_x_date,我也试过以下:
scale_x_date(breaks = "1 month",labels=date_format("%B")) +
考研英语作文范文但这产⽣这个错误:
hm是什么东西Error in structure(list(call = match.call(),aesthetics = aesthetics,:
could not find function "date_format"
全新版大学英语综合教程4
如何在x轴上实现⽉名“%B”格式化? (如果您对产⽣这些错误讯息的机制有任何其他意见,我也很感激。)gridlock
宣布英语