Monday, 15 June 2015

r - qplot dynamic plotting -



r - qplot dynamic plotting -

i create dynamic plotting on given dates, ie want plots appear 1 after through specific dates when code run. code seems work plot function not qplot.

any ideas?

thanks in advance,

x headings t, date, aum, profit

windows(5,5) dev.set() (i in 1:10){ z <- x[x$t == i,] <- unique(z$date) qplot(z$aum,z$profit,main=a,xlim=range(0:2.5e+08),ylim=range(0:6e+06)) }

you need add together print() call, i.e. print(qplot(...)).

the reason ggplot2 uses grid graphics requires print call.

print(qplot(z$aum,z$profit,main=a,xlim=range(0:2.5e+08),ylim=range(0:6e+06)))

this r faq 7.16.

r dynamic ggplot2

No comments:

Post a Comment