fix: address review round 4 for #7
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#'
|
#'
|
||||||
#' @section Themes:
|
#' @section Themes:
|
||||||
#' \itemize{
|
#' \itemize{
|
||||||
#' \item [theme_civilytics()] -- editorial theme with warm paper background
|
#' \item [theme_civilytics()] -- editorial theme with transparent background (opt-in cream)
|
||||||
#' \item [theme_civilytics_dark()] -- navy background variant
|
#' \item [theme_civilytics_dark()] -- navy background variant
|
||||||
#' \item [theme_civilytics_slide()] -- transparent background, larger text
|
#' \item [theme_civilytics_slide()] -- transparent background, larger text
|
||||||
#' }
|
#' }
|
||||||
|
|||||||
+2
-2
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
|
|||||||
Brand themes, color palettes, and utility functions for
|
Brand themes, color palettes, and utility functions for
|
||||||
[Civilytics Consulting](https://www.civilytics.com). The package provides a
|
[Civilytics Consulting](https://www.civilytics.com). The package provides a
|
||||||
complete ggplot2 theme system drawn from the Civilytics design system ---
|
complete ggplot2 theme system drawn from the Civilytics design system ---
|
||||||
warm paper backgrounds, civic-navy ink, and editorial typography --- along
|
transparent backgrounds (opt-in cream), civic-navy ink, and editorial typography --- along
|
||||||
with 10 curated color palettes, logo composition helpers, and data-wrangling
|
with 10 curated color palettes, logo composition helpers, and data-wrangling
|
||||||
utilities for public-sector analysis.
|
utilities for public-sector analysis.
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ same typographic structure and accept `grid` and `paper_bg` parameters.
|
|||||||
|
|
||||||
### Editorial (default)
|
### Editorial (default)
|
||||||
|
|
||||||
The default theme uses a warm paper background with horizontal gridlines ---
|
The default theme uses a transparent background with horizontal gridlines ---
|
||||||
an editorial, Pew-style layout.
|
an editorial, Pew-style layout.
|
||||||
|
|
||||||
```{r theme-editorial, fig.height = 4, fig.width = 7}
|
```{r theme-editorial, fig.height = 4, fig.width = 7}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ parameters.
|
|||||||
|
|
||||||
### Editorial (default)
|
### Editorial (default)
|
||||||
|
|
||||||
The default theme uses a warm paper background with horizontal gridlines
|
The default theme uses a transparent background with horizontal gridlines
|
||||||
— an editorial, Pew-style layout.
|
— an editorial, Pew-style layout.
|
||||||
|
|
||||||
``` r
|
``` r
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public-sector analysis.
|
|||||||
\section{Themes}{
|
\section{Themes}{
|
||||||
|
|
||||||
\itemize{
|
\itemize{
|
||||||
\item [theme_civilytics()] -- editorial theme with warm paper background
|
\item [theme_civilytics()] -- editorial theme with transparent background (opt-in cream)
|
||||||
\item [theme_civilytics_dark()] -- navy background variant
|
\item [theme_civilytics_dark()] -- navy background variant
|
||||||
\item [theme_civilytics_slide()] -- transparent background, larger text
|
\item [theme_civilytics_slide()] -- transparent background, larger text
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,10 +56,9 @@ to [civilytics_colors]`["paper_2"]` (`#F2EDE4`).}
|
|||||||
\item{grid}{Character. Which major gridlines to draw: `"y"` (default,
|
\item{grid}{Character. Which major gridlines to draw: `"y"` (default,
|
||||||
horizontal only), `"x"` (vertical only), `"both"`, or `"none"`.}
|
horizontal only), `"x"` (vertical only), `"both"`, or `"none"`.}
|
||||||
|
|
||||||
\item{paper_bg}{Logical. If `TRUE` (default), fill the plot and panel
|
\item{paper_bg}{Logical. If `FALSE` (default), the plot and panel
|
||||||
backgrounds with the warm `paper` color. Set to `FALSE` for a
|
backgrounds are transparent (`fill = NA`). Set to `TRUE` to fill them
|
||||||
transparent background (useful for slides or overlay on colored
|
with the warm `paper` color for a branded cream canvas.}
|
||||||
surfaces).}
|
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
A complete ggplot2 [ggplot2::theme()] object.
|
A complete ggplot2 [ggplot2::theme()] object.
|
||||||
|
|||||||
Reference in New Issue
Block a user