I have a dataset "bc" with 2285 observations two variables: "Date" and "Price".
'data.frame': 2285 obs. of 2 variables:
$ Date : Date, format: "2017-12-14" "2017-12-13" ...
$ Price: num 16234 16250 16650 16470 14691 ...
I tried to create a time series object as:
tsbc <- ts(bc)
Then, I used:
autoplot(tsbc)
And I get figure below:
However, the plot is not how it is supposed to be. Could you help me understand why?