По умолчанию объекты, созданные quantmod::getSymbols
, на самом деле относятся к классу xts
. Это означает, что ваш big.red.dot
должен быть xts
объектом:
big.red.dot <- xts(85, as.Date("2011-05-05"))
plot(SAM['2011'])
points( big.red.dot, col="red", pch=19, cex=5 )
