Skip to content

Commit

Permalink
Merge 8da9e29 into 476cecb
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Jan 12, 2017
2 parents 476cecb + 8da9e29 commit 230f960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/ggplot.R
Expand Up @@ -1247,7 +1247,7 @@ autoplot.mts <- function(object, colour=TRUE, facets=FALSE, ...){

#Initialise ggplot object
mapping <- ggplot2::aes_(y=~y, x=~x, group=~series)
if(colour){
if (colour & (!facets | !missing(colour))){
mapping$colour <- quote(series)
}
p <- ggplot2::ggplot(mapping, data=data)
Expand Down
2 changes: 1 addition & 1 deletion man/autoplot.ts.Rd
Expand Up @@ -15,7 +15,7 @@
\arguments{
\item{object}{Object of class \dQuote{ts} or \dQuote{mts}.}
\item{series}{Identifies the timeseries with a colour, which integrates well with the functionality of \link{geom_forecast}.}
\item{facets}{If TRUE, multiple time series will be faceted. If FALSE, each series will be assigned a colour.}
\item{facets}{If TRUE, multiple time series will be faceted (and unless specified, colour is set to FALSE). If FALSE, each series will be assigned a colour.}
\item{colour}{If TRUE, the time series will be assigned a colour aesthetic}
\item{model}{Object of class \dQuote{ts} to be converted to \dQuote{data.frame}.}
\item{data}{Not used (required for \link{fortify} method)}
Expand Down

0 comments on commit 230f960

Please sign in to comment.