plotTendencyWithMA: Plot tendency with moving avarage.

View source: R/functions.R

plotTendencyWithMAR Documentation

Plot tendency with moving avarage.

Usage

plotTendencyWithMA(ds)

Arguments

ds

Examples

##---- 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")
  }

danielfhenrique789/profitmaximization documentation built on April 5, 2025, 4:05 p.m.