I am trying to plot a and b, each consisting of 7500 data points. However when
I tried plot(x,y), I got the following error:
> plot(a[11],b[11])
Error in xy.coords(x, y, xlabel, ylabel, log) :
(list) object cannot be coerced to type 'double'
Which is strange,because all values all whole numbers.
What can I do?
Thank you.
It looks like you’re trying to plot a vector from a list. Try subseting using
$or[[]]instead.Here’s your problem:
Here’s the solution:
Alternatively, if you’d prefer to stick with numbers:
I would strongly recommend that you read the help page associated with this: