r - Issue with chart.Drawdown in performance analytics, need finite 'ylim' values error -


so trying create drawdown graph daily profit/loss. using:

cols = rainbow(ncol(pdrawdown),s=0.7, v=0.8, alpha= 0.7) chart.drawdown(pdrawdown, legend.loc = "bottomleft",colorset = cols,                main = "drawdown chart", xlab ="date", ylab = "drawdown") 

i able plot returns (whose values part less 10). however, upon trying use exact same method profit/loss, values reach range of 10e+09, error:

error in plot.window(xlim, ylim, xaxs = "r", log = logaxis) :    need finite 'ylim' values 

the weirdest part when divide every value in data table pdrawdown 10,000,000 pdrawdown = pdrawdown/10000000, issue solved , can plot it. can plot graph without having use weird hack?

can set ylim value?

chart.drawdown(pdrawdown, legend.loc = "bottomleft",colorset = cols,            main = "drawdown chart", xlab ="date", ylab = "drawdown",                     ylim=c(0,1000000000)) 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -