seq.int(0,to0-from,by)中的错误:“ to”必须是有限数

时间:2019-03-16 01:41:13

标签: r ggplot2

这是我的以下Rcode:

wikipediaPage <-"https://en.wikipedia.org/wiki/1500_metres_world_record_progression"
htmlContent <- getURL(wikipediaPage)
result <- readHTMLTable(htmlContent)

tableWR <- readHTMLTable(htmlContent, which = 2, stringsAsFactors = FALSE)

tempTime = as.POSIXlt(tableWR$Time, format = "%M:%OS")

finalTable = data.frame(runTime = (tempTime$min * 60) + tempTime$sec, 
                        recordSet = as.Date(tableWR$Date, format = "%Y-%m-%d"))

p1 <- ggplot(data = finalTable, aes(x = recordSet, y = runTime))
p1 + geom_line()

然后我说一个错误

  

seq.int(0,to0-from,by)中的错误:“ to”必须为有限数字

任何人都可以帮忙吗?

0 个答案:

没有答案