Displaying 1 result from an estimated 1 matches for "labdiff".
Did you mean:
cardiff
2011 Nov 09
1
Invalid 'yscale' in viewport
...this message when trying to plot
dates. However, my data are two numeric vectors. The strange part is that
these vectors are in fact date differences -- they started life as dates -- but
I've already converted them to numeric, like so:
$ cogdiff <- as.numeric(cogdate - scandate)/365.24
$ labdiff <- as.numeric(labdate - scandate)/365.24
When I check is(cogdiff) and is(labdiff) it tells me that both are numeric
vectors. And if I put these variables into other plotting routines (e.g.
plot(), qplot()), I get the expected output. So on some level the conversion to
numeric has "worked...