-
Notifications
You must be signed in to change notification settings - Fork 17
/
README.Rmd
55 lines (43 loc) · 1.94 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tsibbledata <a href='https://tsibbledata.tidyverts.org'><img src='man/figures/logo.png' align="right" height="138.5" /></a>
<!-- badges: start -->
[![R-CMD-check](https://github.com/tidyverts/tsibbledata/workflows/R-CMD-check/badge.svg)](https://github.com/tidyverts/tsibbledata/actions)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/tsibbledata)](https://cran.r-project.org/package=tsibbledata)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/tidyverts/tsibbledata/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidyverts/tsibbledata/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
This package provides examples of [tsibble](https://tsibble.tidyverts.org/) datasets which can be used within the [tidyverts](https://tidyverts.org/) family of packages.
## Installation
You could install the stable version on [CRAN](https://cran.r-project.org/package=tsibbledata):
```{r, eval = FALSE}
install.packages("tsibbledata")
```
You could install the development version from [GitHub](https://github.com/) using
```{r, eval = FALSE}
# install.packages("remotes")
remotes::install_github("tidyverts/tsibbledata")
```
## Example
```{r elecdemand, message = FALSE, warning = FALSE}
library(tsibbledata)
library(ggplot2)
ggplot(olympic_running, aes(x=Year, y = Time, colour = Sex)) +
geom_line() +
geom_point(size = 1) +
facet_wrap(~ Length, scales = "free_y", nrow = 2) +
theme_minimal() +
scale_color_brewer(palette = "Dark2") +
theme(legend.position = "bottom", legend.title = element_blank()) +
ylab("Running time (seconds)")
```