R中的轴上未显示值

时间:2019-01-23 11:06:54

标签: r

我正在尝试在日期和AED之间绘制图。我可以绘制该图,但是x和y轴上没有显示任何值。请帮助我获取轴上显示的值 日期是日期类型,AED是数字类型。

我的图形绘制代码:

>dput(x$Date)
>structure(c(17805, 17806, 17807, 17808, 17809, 17811, 17812, 
17813, 17814, 17815, 17816, 17817, 17818, 17819, 17820, 17821, 
17822, 17823, 17824, 17825, 17826, 17827, 17828, 17829, 17830, 
17831, 17832, 17833, 17834, 17835), class = "Date")

>dput(x$AED)
>structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
1L, 1L, 1L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 1L, 1L, 1L, 1L, 
1L), .Label = c("", "1", "10", "101", "11", "12", "13", "14", 
"15", "16", "17", "18", "19", "2", "20", "21", "22", "23", "24", 
"25", "26", "27", "28", "29", "3", "30", "31", "32", "33", "34", 
"35", "36", "37", "38", "39", "4", "40", "41", "42", "43", "44", 
"45", "46", "47", "48", "49", "5", "50", "51", "52", "53", "55", 
"57", "58", "59", "6", "60", "61", "65", "66", "68", "7", "73", 
"74", "77", "8", "80", "84", "86", "87", "9", "98", "A28"), class = "factor")

 >x <- d2[which(d2$User_ID=='Some_'),]
 >date = x$Date
 >AED = x$AED_Volume_Processed
 >plot(date,AED,main="Plot",xlab = "Days",ylab="Volume",pch=10)

我尝试将其转换为数字,但仍无法正常工作,基本上该图未在轴上显示任何值

 > is.numeric(x$AED_Volume_Processed)
[1] TRUE

谢谢!

0 个答案:

没有答案