fix: revert font_size default to 14pt, keep DPI fix
R-CMD-check / R CMD check (push) Successful in 3m37s
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 57 KiB |
@@ -5,7 +5,7 @@
|
||||
\title{Civilytics ggplot2 theme}
|
||||
\usage{
|
||||
theme_civilytics(
|
||||
font_size = 16,
|
||||
font_size = 14,
|
||||
font_family = CV_FONT_SANS,
|
||||
title_family = CV_FONT_DISPLAY,
|
||||
line_size = 0.5,
|
||||
@@ -21,7 +21,7 @@ theme_civilytics(
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{font_size}{Numeric. Base font size in points. Default `16`.}
|
||||
\item{font_size}{Numeric. Base font size in points. Default `14`.}
|
||||
|
||||
\item{font_family}{Character. Font family for body/axis text. Default
|
||||
`"Inter"` (loaded via showtext).}
|
||||
@@ -86,14 +86,14 @@ At the default `font_size = 14`:
|
||||
|
||||
| Element | Scale factor | Default size |
|
||||
|:--------|:-------------|:-------------|
|
||||
| Plot title | `rel_large` (1.43x) | ~23 pt |
|
||||
| Subtitle | 1.0x | 16 pt |
|
||||
| Axis text (tick labels) | `rel_small` (0.86x) | ~14 pt |
|
||||
| Axis titles | `rel_small` (0.86x) | ~14 pt |
|
||||
| Legend text | `rel_small` (0.86x) | ~14 pt |
|
||||
| Caption | `rel_tiny` (0.79x) | ~13 pt |
|
||||
| Legend title | `rel_tiny` (0.79x) | ~13 pt |
|
||||
| Strip text (facets) | `rel_small` (0.86x) | ~14 pt |
|
||||
| Plot title | `rel_large` (1.43x) | ~20 pt |
|
||||
| Subtitle | 1.0x | 14 pt |
|
||||
| Axis text (tick labels) | `rel_small` (0.86x) | ~12 pt |
|
||||
| Axis titles | `rel_small` (0.86x) | ~12 pt |
|
||||
| Legend text | `rel_small` (0.86x) | ~12 pt |
|
||||
| Caption | `rel_tiny` (0.79x) | ~11 pt |
|
||||
| Legend title | `rel_tiny` (0.79x) | ~11 pt |
|
||||
| Strip text (facets) | `rel_small` (0.86x) | ~12 pt |
|
||||
|
||||
To uniformly scale all text, change `font_size`. To adjust only the title
|
||||
prominence, change `rel_large`. When using [civilytics_logo()] to add a
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
\title{Dark variant of the Civilytics ggplot2 theme}
|
||||
\usage{
|
||||
theme_civilytics_dark(
|
||||
font_size = 16,
|
||||
font_size = 14,
|
||||
font_family = CV_FONT_SANS,
|
||||
title_family = CV_FONT_DISPLAY,
|
||||
line_size = 0.5,
|
||||
@@ -21,7 +21,7 @@ theme_civilytics_dark(
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{font_size}{Numeric. Base font size in points. Default `16`.}
|
||||
\item{font_size}{Numeric. Base font size in points. Default `14`.}
|
||||
|
||||
\item{font_family}{Character. Font family for body/axis text. Default
|
||||
`"Inter"` (loaded via showtext).}
|
||||
|
||||
@@ -21,7 +21,7 @@ theme_civilytics_slide(
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{font_size}{Numeric. Base font size in points. Default `16`.}
|
||||
\item{font_size}{Numeric. Base font size in points. Default `14`.}
|
||||
|
||||
\item{font_family}{Character. Font family for body/axis text. Default
|
||||
`"Inter"` (loaded via showtext).}
|
||||
|
||||