I’m obviously missing something obvious here; this simple code generates an error – can someone point out my mistake?!
times <- c(0:365)
t1 <- seq(0,365)
plot(times,t1,lty="l")
> source(.trPaths[5])
Error in plot.xy(xy, type, ...) :
invalid line type: must be length 2, 4, 6 or 8
removing the lty="l" plots the graph in the default way, with each point shown.
Your plot call is wrong. You want to call
plot(times, t1, type="l").See also
?plotand?par.