Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the README to reflect teh transfer #2

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/get_mapping_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ get_mapping_data <- function(.data, un_estimates, rates, subnational_map = NULL,
preg_loss = rates$preg_loss)
}

print(glimpse(shapefile))

merged_data <- merged_data %>%
left_join(shapefile, by = 'adminlevel_1')

Expand Down
1 change: 1 addition & 0 deletions R/plot.mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ plot.cd_mapping <- function(x,
x %>%
filter(if(is.null(plot_year)) TRUE else year %in% plot_year) %>%
st_as_sf() %>%
st_set_crs(4326) %>%
st_transform(crs = 4326) %>%
ggplot() +
geom_sf(aes(fill = !!sym(column))) +
Expand Down
22 changes: 19 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,21 @@ R package so you can use some features in the code directly.

## Installation

You can install the development version of cd2030 from [GitHub](https://github.com/) with:
You can install a stable version of cd2030 from [GitHub](https://github.com/) with:

```{r}
if (!require('pak')) install.packages("pak")
pak::pak("damurka/cd2030")
install.packages("devtools")
devtools::install_github("aphrcwaro/cd2030@1.0.0")
```

## Development version

To get a bug fix or to use a feature from the development version, you can install
the development version of cd2030.

```{r}
install.packages("devtools")
devtools::install_github("aphrcwaro/cd2030")
```

## Running the App
Expand Down Expand Up @@ -64,7 +74,13 @@ Here is a preview of the dashboard:

![Dashboard Screenshot](man/figures/dashboard.jpeg)

## Getting help

If you encounter a clear bug, please file an issue with a minimal reproducible example on
![Github](https://github.com/aphrcwaro/cd2030/issues).

## Contributing

Contributions to improve the **cd2030** package are welcome! Please fork the repository,
make your changes, and submit a pull request.

22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,22 @@ directly.

## Installation

You can install the development version of cd2030 from
You can install a stable version of cd2030 from
[GitHub](https://github.com/) with:

``` r
if (!require('pak')) install.packages("pak")
pak::pak("damurka/cd2030")
install.packages("devtools")
devtools::install_github("aphrcwaro/cd2030@1.0.0")
```

## Development version

To get a bug fix or to use a feature from the development version, you
can install the development version of cd2030.

``` r
install.packages("devtools")
devtools::install_github("aphrcwaro/cd2030")
```

## Running the App
Expand Down Expand Up @@ -56,6 +66,12 @@ Here is a preview of the dashboard:
<figcaption aria-hidden="true">Dashboard Screenshot</figcaption>
</figure>

## Getting help

If you encounter a clear bug, please file an issue with a minimal
reproducible example on
![Github](https://github.com/aphrcwaro/cd2030/issues).

## Contributing

Contributions to improve the **cd2030** package are welcome! Please fork
Expand Down
Loading