Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Mar 19, 2018
1 parent a215b18 commit 56e7f63
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ library(anomalize)

First, let's get some data. We have a data set called `tidyverse_cran_downloads` that contains the daily CRAN download counts for 15 "tidy" packages from 2017-01-01 to 2018-03-01.

```{r, fig.height=5}
```{r tidyverse_plot, fig.height=5}
tidyverse_cran_downloads %>%
ggplot(aes(date, count)) +
geom_point(color = "#2c3e50", alpha = 0.25) +
Expand All @@ -77,7 +77,7 @@ tidyverse_cran_downloads %>%

Suppose we want to determine which daily "counts" are anomalous. It's as easy as using the three main functions (`time_decompose()`, `anomalize()`, and `time_recompose()`) along with a visualization function, `plot_anomalies()`.

```{r, fig.height=8}
```{r tidyverse_anoms, fig.height=8}
tidyverse_cran_downloads %>%
time_decompose(count, method = "stl") %>%
anomalize(remainder, method = "iqr") %>%
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ tidyverse_cran_downloads %>%
theme(axis.text.x = element_text(angle = 30, hjust = 1))
```

<img src="man/figures/README-unnamed-chunk-2-1.png" width="100%" />
<img src="man/figures/README-tidyverse_plot-1.png" width="100%" />

Suppose we want to determine which daily “counts” are anomalous. It’s as
easy as using the three main functions (`time_decompose()`,
Expand All @@ -90,7 +90,7 @@ tidyverse_cran_downloads %>%
theme(axis.text.x = element_text(angle = 30, hjust = 1))
```

<img src="man/figures/README-unnamed-chunk-3-1.png" width="100%" />
<img src="man/figures/README-tidyverse_anoms-1.png" width="100%" />

If you’re familiar with Twitter’s `AnomalyDetection` package, you can
implement that method by combining `time_decompose(method = "twitter")`
Expand All @@ -108,7 +108,7 @@ tidyverse_cran_downloads %>%
labs(title = "Lubridate Anomalies", subtitle = "Twitter + GESD Methods")
```

<img src="man/figures/README-unnamed-chunk-4-1.png" width="100%" />
<img src="man/figures/README-unnamed-chunk-2-1.png" width="100%" />

And, we can compare to STL + IQR methods, which use different
decomposition and anomaly detection approaches.
Expand All @@ -123,7 +123,7 @@ tidyverse_cran_downloads %>%
labs(title = "Lubridate Anomalies", subtitle = "STL + IQR Methods")
```

<img src="man/figures/README-unnamed-chunk-5-1.png" width="100%" />
<img src="man/figures/README-unnamed-chunk-3-1.png" width="100%" />

There are a several extra capabilities:

Expand Down
Binary file added man/figures/README-tidyverse_anoms-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/README-tidyverse_plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56e7f63

Please sign in to comment.