Skip to content

Commit

Permalink
Prepare for 0.6.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Jun 9, 2023
1 parent 132175b commit f4a1337
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 78 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: usmap
Version: 0.6.1.9999
Version: 0.6.2
Title: US Maps Including Alaska and Hawaii
Description: Obtain United States map data frames of varying region types (e.g. county,
state). The map data frames include Alaska and Hawaii conveniently placed to the
Expand All @@ -10,6 +10,7 @@ Depends:
R (>= 3.5.0)
License: GPL (>= 3)
Encoding: UTF-8
Language: en-US
LazyData: true
URL: https://usmap.dev
BugReports: https://github.com/pdil/usmap/issues
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# usmap 0.6.1.9999
# usmap 0.6.2

### Bug Fixes
* Replace retired packages `maptools` and `rgdal` with `sp` and `sf`, see [Issue #57](https://github.com/pdil/usmap/issues/57) and [Issue #70](https://github.com/pdil/usmap/issues/70).
* Special thanks [@rsbivand](https://github.com/rsbivand).

# usmap 0.6.1
Released Saturday, November 12, 2022.
Expand Down
9 changes: 5 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

## Test environments
* local macOS install, R 4.2.2
* local macOS install, R 4.3.0

#### On Github Actions
* macOS-latest (release), R 4.2.2
* windows-latest (release), R 4.2.2
* ubuntu-20.04 (oldrel, devel, release), R 4.2.2
* macOS-latest (release), R 4.3.0
* windows-latest (release), R 4.3.0
* ubuntu-22.04 (oldrel, devel, release), R 4.2.3

## R CMD check results

Expand All @@ -17,3 +17,4 @@ I have also run R CMD check on downstream dependencies of usmap:

* cpsvote
* ecocomDP
* PracTools
1 change: 1 addition & 0 deletions revdep/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ checks.noindex
library.noindex
data.sqlite
*.html
cloud.noindex
28 changes: 14 additions & 14 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Platform

|field |value |
|:--------|:-----------------------------------------------------------------------------------|
|version |R version 4.2.2 (2022-10-31) |
|os |macOS Ventura 13.0 |
|system |aarch64, darwin20 |
|ui |RStudio |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/New_York |
|date |2022-11-12 |
|rstudio |2022.07.2+576 Spotted Wakerobin (desktop) |
|pandoc |2.19.2 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/ (via rmarkdown) |
|field |value |
|:--------|:------------------------------------------------------------------------------------------|
|version |R version 4.3.0 (2023-04-21) |
|os |macOS Ventura 13.4 |
|system |aarch64, darwin20 |
|ui |RStudio |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/New_York |
|date |2023-06-08 |
|rstudio |2023.06.0+421 Mountain Hydrangea (desktop) |
|pandoc |3.1.1 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/ (via rmarkdown) |

# Dependencies

|package |old |new |Δ |
|:-------|:-----|:-----|:--|
|usmap |0.6.0 |0.6.1 |* |
|usmap |0.6.1 |0.6.2 |* |

# Revdeps

2 changes: 1 addition & 1 deletion revdep/cran.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## revdepcheck results

We checked 2 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 3 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
Expand Down
16 changes: 8 additions & 8 deletions vignettes/advanced-mapping.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,19 @@ Notice in this case we set the `fill` and `alpha` parameters to fill in the coun

The following parameters are supported:

* `fill`: fill color of the state/county polygons
* `alpha`: transparency of the state/county polygon fill colors
* `color`/`colour`: line color of the state/county polygons
* `linewidth`: thickness of the state/county polygon lines
- `fill`: fill color of the state/county polygons
- `alpha`: transparency of the state/county polygon fill colors
- `color`/`colour`: line color of the state/county polygons
- `linewidth`: thickness of the state/county polygon lines

## Transform data frames to match `usmap` projection

Data sets with longitude and latitude coordinates can be transformed to match
the projection used in `usmap` (Albers Equal Area projection).
This is convenient for plotting location-specific data and values using `ggplot2` layers such as `geom_point` and `geom_label`.
Data sets with longitude and latitude coordinates can be transformed to match the projection used in `usmap` (Albers Equal Area projection). This is convenient for plotting location-specific data and values using `ggplot2` layers such as `geom_point` and `geom_label`.

#### Projection

The projection used by `usmap` can also be accessed by using `usmap_crs()`:

```{r, warning=FALSE}
usmap::usmap_crs()@projargs
```
Expand All @@ -95,6 +94,7 @@ plot_usmap() +
```

#### Example: most populous city in each state

And a more comprehensive example using the provided `citypop` dataset:

```{r, fig.align='center', fig.width=8, fig.height=5, message=FALSE, warning=FALSE}
Expand All @@ -121,6 +121,6 @@ plot_usmap(fill = "yellow", alpha = 0.25) +
theme(legend.position = "right")
```

The `usmap_transform` function, combined with the power of `ggplot2` layers can allow for some very unique and complex data visualizations on the US map. The `usmap_transform` function also handles transforming points in the Alaska/Hawaii area so that they are appropriately displayed on their respective states.
The `usmap_transform` function, combined with the power of `ggplot2` layers can allow for some very unique and complex data visualizations on the US map. The `usmap_transform` function also handles transforming points in the Alaska/Hawaii area so that they are appropriately displayed on their respective states.

Currently, `usmap_transform` does not trim any points that fall outside the Alaska/Hawaii/US bounding boxes so it is important to prepare the data beforehand by eliminating any points that should not be displayed on the map otherwise it could have undesirable results.
102 changes: 53 additions & 49 deletions vignettes/advanced-mapping.html

Large diffs are not rendered by default.

0 comments on commit f4a1337

Please sign in to comment.