Skip to content

Commit

Permalink
fix submission issues 2022-10-25
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Nov 17, 2022
1 parent cb2264a commit 0285431
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 15 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ggredist
Title: Scales, Geometries, and Extensions of 'ggplot2' for Election Mapping
Version: 0.0.1
Version: 0.0.2
Authors@R: c(
person("Cory", "McCartan", email = "[email protected]", role = "aut"),
person("Christopher T.", "Kenny", email = "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion R/538.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#'
#' @param ... additional arguments to `ggplot::scale_*` functions
#'
#' @md
#' @return ggplot scale function
#'
#' @examples
#' scale_fill_538()
#' scale_color_538()
Expand Down
2 changes: 2 additions & 0 deletions R/dra.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#'
#' @param ... Arguments passed on to [ggplot2::discrete_scale()]
#'
#' @return ggplot scale function
#'
#' @examples
#' library(ggplot2)
#' data(oregon)
Expand Down
2 changes: 2 additions & 0 deletions R/nature.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#'
#' @param ... Arguments passed on to [ggplot2::discrete_scale()]
#'
#' @return ggplot scale function
#'
#' @examples
#' library(ggplot2)
#' data(oregon)
Expand Down
2 changes: 2 additions & 0 deletions R/party.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#' of exactly evenly spaced between the limits.
#' @param ... Additional arguments to `ggplot::scale_*` functions
#'
#' @return ggplot scale function
#'
#' @examples
#' library(ggplot2)
#' data(oregon)
Expand Down
2 changes: 2 additions & 0 deletions R/penn82.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#'
#' @param ... Arguments passed on to [ggplot2::discrete_scale()]
#'
#' @return ggplot scale function
#'
#' @examples
#' library(ggplot2)
#' data(oregon)
Expand Down
2 changes: 2 additions & 0 deletions R/polimap.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#'
#' @param ... Arguments passed on to [ggplot2::discrete_scale()]
#'
#' @return ggplot scale function
#'
#' @examples
#' library(ggplot2)
#' data(oregon)
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ggplot(oregon, aes(group=cd_2020)) +
theme_map()
```

See more in [the reference](/ggredist/reference/).
See more in [the reference](https://alarm-redist.org/ggredist/reference/index.html).


## Installation
Expand Down
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,17 @@ ggplot(oregon, aes(group=cd_2020)) +
# can then highlight towns and cities
geom_places(state = 'OR') +
# we can overlay county boundaries and labels
geom_district(aes(group=county), linewidth=0.4, linetype="dashed", fill=NA) +
geom_district(aes(group=county), linewidth=0.2, linetype="dashed", fill=NA) +
geom_district_text(aes(group=county, label=toupper(county)),
size=2.2, check_overlap=TRUE) +
scale_fill_party_b(limits=c(0.4, 0.6)) +
theme_map()
#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not
#> found in Windows font database

#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not
#> found in Windows font database
#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
#> family not found in Windows font database

#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
#> family not found in Windows font database
```

<img src="man/figures/README-example-1.png" width="100%" />

See more in [the reference](/ggredist/reference/).
See more in [the
reference](https://alarm-redist.org/ggredist/reference/index.html).

## Installation

Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Resubmission
This is a resubmission. I address the issues from the 2022-10-25 submission as follows:

* Adds missing value entry to scales (`scale_538.Rd`, `scale_dra.Rd`, `scale_nature.Rd`, `scale_party.Rd`, `scale_penn82.Rd`, and `scale_polimap.Rd`).
* Corrects broken link in `readme.md`.

## Test environments

* local R installation (Windows 11), R 4.2.1
Expand Down
Binary file modified man/figures/README-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions man/scale_538.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/scale_dra.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/scale_nature.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/scale_party.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/scale_penn82.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/scale_polimap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0285431

Please sign in to comment.