Skip to content

Commit

Permalink
updated readme for multi-year plot
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjacobs authored and jayjacobs committed Mar 18, 2017
1 parent 00b7a25 commit ab1a85a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.Rmd
Expand Up @@ -59,3 +59,15 @@ myfills <- ifelse(format(mydate, "%w") %in% c(0,6), "weekend" ,"weekday")
ggcal(mydate, myfills) + scale_fill_manual(values=c("weekday"="steelblue", "weekend"="lightsteelblue"))
```

This will also span multiple years...

```{r}
mydate <- seq(as.Date("2016-09-01"), as.Date("2017-02-28"), by="1 day")
myfills <- rnorm(length(mydate))
ggcal(mydate, myfills) +
scale_fill_gradient2(low="#4575b4", mid="#ffffbf", high="#d73027", midpoint=0)
```

12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -59,3 +59,15 @@ ggcal(mydate, myfills) + scale_fill_manual(values=c("weekday"="steelblue", "week
```

![](README_files/figure-markdown_github/unnamed-chunk-5-1.png)

This will also span multiple years...

``` r
mydate <- seq(as.Date("2016-09-01"), as.Date("2017-02-28"), by="1 day")
myfills <- rnorm(length(mydate))

ggcal(mydate, myfills) +
scale_fill_gradient2(low="#4575b4", mid="#ffffbf", high="#d73027", midpoint=0)
```

![](README_files/figure-markdown_github/unnamed-chunk-6-1.png)
Binary file modified README_files/figure-markdown_github/unnamed-chunk-2-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-markdown_github/unnamed-chunk-3-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-markdown_github/unnamed-chunk-4-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ab1a85a

Please sign in to comment.