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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -