我在.csv文件中的读数在第一行的顶部有年份名称,每列代表不同的年份。虽然我可以正确生成箱线图,但X轴标签不正确,每年都有来自它的X in
示例:2003 2004 2005 我得到的:X2003 X2004 X2005
尝试手动添加名称会给我以下消息:
boxplot(a1, names="2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015", xlab="Year", ylab="Total length (cm)")
我得到的错误是:轴错误(side = 1,at = 1:13,labels =" 2003"): '在'和'标签'长度不同,13!= 1
有什么想法吗?提前致谢