plotTendencyWithMA | R Documentation |
plotTendencyWithMA(ds)
ds |
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (ds)
{
ggplot() + geom_line(data = ds, aes(x = index(Date), y = Ticket,
colour = "Tickets")) + geom_line(data = ds, aes(x = index(Date),
y = MA.Slow, colour = "M\303\251dia lenta")) + geom_line(data = ds,
aes(x = index(Date), y = MA.Fast, colour = "M\303\251dia r\303\241pida")) +
ylab("Cota\303\247\303\243o")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.