Skip to content

Commit 028ff8c

Browse files
authored
Merge pull request #230 from cmu-delphi/ndefries/web-intro-pages
Redo landing page and intro doc
2 parents 21e3670 + 04c57b7 commit 028ff8c

File tree

6 files changed

+805
-471
lines changed

6 files changed

+805
-471
lines changed

DESCRIPTION

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Suggests:
4444
dplyr,
4545
ggplot2,
4646
knitr,
47+
maps,
48+
mapproj,
4749
rmarkdown,
4850
rlang,
4951
testthat (>= 3.1.5),

README.Rmd

+16-68
Original file line numberDiff line numberDiff line change
@@ -21,86 +21,34 @@ ggplot2::theme_set(ggplot2::theme_bw())
2121
[![codecov](https://codecov.io/gh/dsweber2/epidatr/branch/dev/graph/badge.svg?token=jVHL9eHZNZ)](https://app.codecov.io/gh/dsweber2/epidatr)
2222
<!-- badges: end -->
2323

24-
The [Delphi Epidatr package](https://cmu-delphi.github.io/epidatr/) is an R front-end for the [Delphi Epidata API](https://cmu-delphi.github.io/delphi-epidata/), which provides real-time access to epidemiological surveillance data for influenza, COVID-19, and other diseases for the USA at various geographical resolutions, both from official government sources such as the [Center for Disease Control (CDC)](https://www.cdc.gov/datastatistics/index.html) and [Google Trends](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/google-symptoms.html) and private partners such as [Facebook](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/) and [Change Healthcare](https://www.changehealthcare.com/). It is built and maintained by the Carnegie Mellon University [Delphi research group](https://delphi.cmu.edu/).
25-
26-
This package is designed to streamline the downloading and usage of data from the [Delphi Epidata
27-
API](https://cmu-delphi.github.io/delphi-epidata/). It provides a simple R interface to the API, including functions for downloading data, parsing the results, and converting the data into a tidy format. The API stores a historical record of all data, including corrections and updates, which is particularly useful for accurately backtesting forecasting models. We also provide packages for downstream data processing ([epiprocess](https://github.com/cmu-delphi/epiprocess)) and modeling ([epipredict](https://github.com/cmu-delphi/epipredict)).
28-
29-
## Usage
30-
31-
You can find detailed docs here:
32-
33-
```{r}
34-
library(epidatr)
35-
# Obtain the smoothed covid-like illness (CLI) signal from the
36-
# Facebook survey as it was on April 10, 2021 for the US
37-
epidata <- pub_covidcast(
38-
source = "fb-survey",
39-
signals = "smoothed_cli",
40-
geo_type = "nation",
41-
time_type = "day",
42-
geo_values = "us",
43-
time_values = epirange(20210101, 20210601),
44-
as_of = "2021-06-01"
45-
)
46-
epidata
47-
```
24+
The [Delphi `epidatr` package](https://cmu-delphi.github.io/epidatr/) is an R front-end for the [Delphi Epidata API](https://cmu-delphi.github.io/delphi-epidata/), which provides real-time access to epidemiological surveillance data for influenza, COVID-19, and other diseases. `epidatr` is built and maintained by the Carnegie Mellon University [Delphi research group](https://delphi.cmu.edu/).
4825

49-
```{r fb-cli-signal}
50-
# Plot this data
51-
library(ggplot2)
52-
ggplot(epidata, aes(x = time_value, y = value)) +
53-
geom_line() +
54-
labs(
55-
title = "Smoothed CLI from Facebook Survey",
56-
subtitle = "US, 2021",
57-
x = "Date",
58-
y = "CLI"
59-
)
60-
```
26+
Data is available for the United States and a handful of other countries at various geographical resolutions, both from official government sources such as the [US Center for Disease Control (CDC)](https://www.cdc.gov/datastatistics/index.html), and private partners such as [Facebook](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/) and [Change Healthcare](https://www.changehealthcare.com/). The API stores a historical record of all data, including corrections and updates, which is particularly useful for accurately backtesting forecasting models.
6127

28+
`epidatr` is designed to streamline the downloading and usage of data from the Epidata API. The package provides a simple R interface to the API, including functions for downloading data, parsing the results, and converting the data into a tidy format. We also provide the [epiprocess](https://github.com/cmu-delphi/epiprocess) package for downstream data processing and [epipredict](https://github.com/cmu-delphi/epipredict) for modeling.
6229

63-
## Installation
30+
Consult the [Epidata API documentation](https://cmu-delphi.github.io/delphi-epidata/) for details on the data included in the API, API key registration, licensing, and how to cite this data in your work. The documentation lists all the data sources and signals available through this API for [COVID-19](https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html) and for [other diseases](https://cmu-delphi.github.io/delphi-epidata/api/README.html#source-specific-parameters).
6431

65-
You can install the stable version of this package from CRAN:
32+
**To get started** using this package, view the Getting Started guide at `vignette("epidatr")`.
6633

67-
```R
68-
install.packages("epidatr")
69-
pak::pkg_install("epidatr")
70-
renv::install("epidatr")
71-
```
34+
## For users of the `covidcast` R package
7235

73-
Or if you want the development version, install from GitHub:
36+
`epidatr` is a complete rewrite of the [`covidcast` package](https://cmu-delphi.github.io/covidcast/covidcastR/), with a focus on speed, reliability, and ease of use. The `covidcast` package is deprecated and will no longer be updated.
7437

75-
```R
76-
# Install the dev version using `pak` or `remotes`
77-
pak::pkg_install("cmu-delphi/epidatr")
78-
remotes::install_github("cmu-delphi/epidatr")
79-
renv::install("cmu-delphi/epidatr")
80-
```
38+
## Get updates
39+
40+
**You should consider subscribing to the [API mailing list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api)** to be notified of package updates, new data sources, corrections, and other updates.
8141

82-
### API Keys
42+
## Usage terms and citation
8343

84-
The Delphi API requires a (free) API key for full functionality. To generate
85-
your key, register for a pseudo-anonymous account
86-
[here](https://api.delphi.cmu.edu/epidata/admin/registration_form) and see more
87-
discussion on the [general API
88-
website](https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html). See the
89-
`save_api_key()` function documentation for details on how to use your API key.
44+
We request that if you use the `epidatr` package in your work, or use any of the data provided by the Delphi Epidata API through non-`covidcast` endpoints, that you cite us using the citation given by [`citation("epidatr")`](https://cmu-delphi.github.io/epidatr/dev/authors.html#citation). If you use any of the data from the `covidcast` endpoint, please use the [COVIDcast citation](https://cmu-delphi.github.io/covidcast/covidcastR/authors.html#citation) as well. See the [COVIDcast licensing documentation](https://cmu-delphi.github.io/delphi-epidata/api/covidcast_licensing.html) and the [licensing documentation for other endpoints](https://cmu-delphi.github.io/delphi-epidata/api/README.html#data-licensing) for information about citing the datasets provided by the API.
45+
46+
**Warning:** If you use data from the Epidata API to power a product, dashboard, app, or other service, please download the data you need and store it centrally rather than making API requests for every user. Our server resources are limited and cannot support high-volume interactive use.
47+
48+
See also the [Terms of Use](https://delphi.cmu.edu/covidcast/terms-of-use/), noting that the data is a research product and not warranted for a particular purpose.
9049

91-
Note that the private endpoints (i.e. those prefixed with `pvt_`) require a
92-
separate key that needs to be passed as an argument. These endpoints require
93-
specific data use agreements to access.
9450

9551
[mit-image]: https://img.shields.io/badge/License-MIT-yellow.svg
9652
[mit-url]: https://opensource.org/license/mit/
9753
[github-actions-image]: https://github.com/cmu-delphi/epidatr/workflows/ci/badge.svg
9854
[github-actions-url]: https://github.com/cmu-delphi/epidatr/actions
99-
100-
## Get updates
101-
102-
You should consider subscribing to the [API mailing list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api) to be notified of package updates, new data sources, corrections, and other updates.
103-
104-
## For users of the `covidcast` R package
105-
106-
The `epidatr` package is a complete rewrite of the [`covidcast` package](https://cmu-delphi.github.io/covidcast/covidcastR/), with a focus on speed, reliability, and ease of use. The `covidcast` package is deprecated and will no longer be updated.

README.md

+64-110
Original file line numberDiff line numberDiff line change
@@ -12,126 +12,80 @@ Actions](https://github.com/cmu-delphi/epidatr/workflows/ci/badge.svg)](https://
1212
[![codecov](https://codecov.io/gh/dsweber2/epidatr/branch/dev/graph/badge.svg?token=jVHL9eHZNZ)](https://app.codecov.io/gh/dsweber2/epidatr)
1313
<!-- badges: end -->
1414

15-
The [Delphi Epidatr package](https://cmu-delphi.github.io/epidatr/) is
15+
The [Delphi `epidatr` package](https://cmu-delphi.github.io/epidatr/) is
1616
an R front-end for the [Delphi Epidata
1717
API](https://cmu-delphi.github.io/delphi-epidata/), which provides
1818
real-time access to epidemiological surveillance data for influenza,
19-
COVID-19, and other diseases for the USA at various geographical
20-
resolutions, both from official government sources such as the [Center
21-
for Disease Control
22-
(CDC)](https://www.cdc.gov/datastatistics/index.html) and [Google
23-
Trends](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/google-symptoms.html)
24-
and private partners such as
25-
[Facebook](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/)
26-
and [Change Healthcare](https://www.changehealthcare.com/). It is built
27-
and maintained by the Carnegie Mellon University [Delphi research
19+
COVID-19, and other diseases. `epidatr` is built and maintained by the
20+
Carnegie Mellon University [Delphi research
2821
group](https://delphi.cmu.edu/).
2922

30-
This package is designed to streamline the downloading and usage of data
31-
from the [Delphi Epidata
32-
API](https://cmu-delphi.github.io/delphi-epidata/). It provides a simple
33-
R interface to the API, including functions for downloading data,
34-
parsing the results, and converting the data into a tidy format. The API
23+
Data is available for the United States and a handful of other countries
24+
at various geographical resolutions, both from official government
25+
sources such as the [US Center for Disease Control
26+
(CDC)](https://www.cdc.gov/datastatistics/index.html), and private
27+
partners such as
28+
[Facebook](https://delphi.cmu.edu/blog/2020/08/26/covid-19-symptom-surveys-through-facebook/)
29+
and [Change Healthcare](https://www.changehealthcare.com/). The API
3530
stores a historical record of all data, including corrections and
3631
updates, which is particularly useful for accurately backtesting
37-
forecasting models. We also provide packages for downstream data
38-
processing ([epiprocess](https://github.com/cmu-delphi/epiprocess)) and
39-
modeling ([epipredict](https://github.com/cmu-delphi/epipredict)).
40-
41-
## Usage
42-
43-
You can find detailed docs here:
44-
45-
``` r
46-
library(epidatr)
47-
# Obtain the smoothed covid-like illness (CLI) signal from the
48-
# Facebook survey as it was on April 10, 2021 for the US
49-
epidata <- pub_covidcast(
50-
source = "fb-survey",
51-
signals = "smoothed_cli",
52-
geo_type = "nation",
53-
time_type = "day",
54-
geo_values = "us",
55-
time_values = epirange(20210101, 20210601),
56-
as_of = "2021-06-01"
57-
)
58-
epidata
59-
#> # A tibble: 151 × 15
60-
#> geo_value signal source geo_type time_type time_value direction issue
61-
#> <chr> <chr> <chr> <fct> <fct> <date> <dbl> <date>
62-
#> 1 us smoothed… fb-su… nation day 2021-01-01 NA 2021-01-06
63-
#> 2 us smoothed… fb-su… nation day 2021-01-02 NA 2021-01-07
64-
#> 3 us smoothed… fb-su… nation day 2021-01-03 NA 2021-01-08
65-
#> 4 us smoothed… fb-su… nation day 2021-01-04 NA 2021-01-09
66-
#> 5 us smoothed… fb-su… nation day 2021-01-05 NA 2021-01-10
67-
#> 6 us smoothed… fb-su… nation day 2021-01-06 NA 2021-01-29
68-
#> 7 us smoothed… fb-su… nation day 2021-01-07 NA 2021-01-29
69-
#> 8 us smoothed… fb-su… nation day 2021-01-08 NA 2021-01-29
70-
#> 9 us smoothed… fb-su… nation day 2021-01-09 NA 2021-01-29
71-
#> 10 us smoothed… fb-su… nation day 2021-01-10 NA 2021-01-29
72-
#> # ℹ 141 more rows
73-
#> # ℹ 7 more variables: lag <int>, missing_value <int>, missing_stderr <int>,
74-
#> # missing_sample_size <int>, value <dbl>, stderr <dbl>, sample_size <dbl>
75-
```
76-
77-
``` r
78-
# Plot this data
79-
library(ggplot2)
80-
ggplot(epidata, aes(x = time_value, y = value)) +
81-
geom_line() +
82-
labs(
83-
title = "Smoothed CLI from Facebook Survey",
84-
subtitle = "US, 2021",
85-
x = "Date",
86-
y = "CLI"
87-
)
88-
```
89-
90-
<img src="man/figures/README-fb-cli-signal-1.png" width="100%" />
91-
92-
## Installation
93-
94-
You can install the stable version of this package from CRAN:
95-
96-
``` r
97-
install.packages("epidatr")
98-
pak::pkg_install("epidatr")
99-
renv::install("epidatr")
100-
```
101-
102-
Or if you want the development version, install from GitHub:
103-
104-
``` r
105-
# Install the dev version using `pak` or `remotes`
106-
pak::pkg_install("cmu-delphi/epidatr")
107-
remotes::install_github("cmu-delphi/epidatr")
108-
renv::install("cmu-delphi/epidatr")
109-
```
110-
111-
### API Keys
112-
113-
The Delphi API requires a (free) API key for full functionality. To
114-
generate your key, register for a pseudo-anonymous account
115-
[here](https://api.delphi.cmu.edu/epidata/admin/registration_form) and
116-
see more discussion on the [general API
117-
website](https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html).
118-
See the `save_api_key()` function documentation for details on how to
119-
use your API key.
120-
121-
Note that the private endpoints (i.e. those prefixed with `pvt_`)
122-
require a separate key that needs to be passed as an argument. These
123-
endpoints require specific data use agreements to access.
124-
125-
## Get updates
126-
127-
You should consider subscribing to the [API mailing
128-
list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api)
129-
to be notified of package updates, new data sources, corrections, and
130-
other updates.
32+
forecasting models.
33+
34+
`epidatr` is designed to streamline the downloading and usage of data
35+
from the Epidata API. The package provides a simple R interface to the
36+
API, including functions for downloading data, parsing the results, and
37+
converting the data into a tidy format. We also provide the
38+
[epiprocess](https://github.com/cmu-delphi/epiprocess) package for
39+
downstream data processing and
40+
[epipredict](https://github.com/cmu-delphi/epipredict) for modeling.
41+
42+
Consult the [Epidata API
43+
documentation](https://cmu-delphi.github.io/delphi-epidata/) for details
44+
on the data included in the API, API key registration, licensing, and
45+
how to cite this data in your work. The documentation lists all the data
46+
sources and signals available through this API for
47+
[COVID-19](https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html)
48+
and for [other
49+
diseases](https://cmu-delphi.github.io/delphi-epidata/api/README.html#source-specific-parameters).
50+
51+
**To get started** using this package, view the Getting Started guide at
52+
`vignette("epidatr")`.
13153

13254
## For users of the `covidcast` R package
13355

134-
The `epidatr` package is a complete rewrite of the [`covidcast`
56+
`epidatr` is a complete rewrite of the [`covidcast`
13557
package](https://cmu-delphi.github.io/covidcast/covidcastR/), with a
13658
focus on speed, reliability, and ease of use. The `covidcast` package is
13759
deprecated and will no longer be updated.
60+
61+
## Get updates
62+
63+
**You should consider subscribing to the [API mailing
64+
list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api)**
65+
to be notified of package updates, new data sources, corrections, and
66+
other updates.
67+
68+
## Usage terms and citation
69+
70+
We request that if you use the `epidatr` package in your work, or use
71+
any of the data provided by the Delphi Epidata API through
72+
non-`covidcast` endpoints, that you cite us using the citation given by
73+
[`citation("epidatr")`](https://cmu-delphi.github.io/epidatr/dev/authors.html#citation).
74+
If you use any of the data from the `covidcast` endpoint, please use the
75+
[COVIDcast
76+
citation](https://cmu-delphi.github.io/covidcast/covidcastR/authors.html#citation)
77+
as well. See the [COVIDcast licensing
78+
documentation](https://cmu-delphi.github.io/delphi-epidata/api/covidcast_licensing.html)
79+
and the [licensing documentation for other
80+
endpoints](https://cmu-delphi.github.io/delphi-epidata/api/README.html#data-licensing)
81+
for information about citing the datasets provided by the API.
82+
83+
**Warning:** If you use data from the Epidata API to power a product,
84+
dashboard, app, or other service, please download the data you need and
85+
store it centrally rather than making API requests for every user. Our
86+
server resources are limited and cannot support high-volume interactive
87+
use.
88+
89+
See also the [Terms of
90+
Use](https://delphi.cmu.edu/covidcast/terms-of-use/), noting that the
91+
data is a research product and not warranted for a particular purpose.

0 commit comments

Comments
 (0)