fix: use light-variant mark in logo example to match light logo area
R-CMD-check / R CMD check (push) Successful in 3m42s

This commit is contained in:
2026-05-19 10:43:52 -06:00
parent 875251068a
commit f9b51cc558
4 changed files with 14 additions and 14 deletions
+7 -7
View File
@@ -207,13 +207,13 @@ p <- ggplot(mpg, aes(displ, hwy, colour = class)) +
grid::grid.draw(civilytics_logo(p)) grid::grid.draw(civilytics_logo(p))
``` ```
### Mark on a dark plot ### Compact mark
Use `type = "mark"` for the compact icon and `variant = "dark"` to Use `type = "mark"` for the compact C-pulse icon instead of the full
match a dark background. wordmark.
```{r logo-dark, fig.height = 4.5, fig.width = 7} ```{r logo-mark, fig.height = 4.5, fig.width = 7}
p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) + p2_logo <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
geom_point(size = 2) + geom_point(size = 2) +
scale_color_civilytics() + scale_color_civilytics() +
labs( labs(
@@ -221,9 +221,9 @@ p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
colour = "Cylinders", colour = "Cylinders",
x = "Displacement (L)", y = "Highway MPG" x = "Displacement (L)", y = "Highway MPG"
) + ) +
theme_civilytics_dark() theme_civilytics()
grid::grid.draw(civilytics_logo(p_dark, type = "mark", variant = "dark")) grid::grid.draw(civilytics_logo(p2_logo, type = "mark"))
``` ```
### Multi-plot layout with logo ### Multi-plot layout with logo
+7 -7
View File
@@ -176,13 +176,13 @@ grid::grid.draw(civilytics_logo(p))
<img src="man/figures/README-logo-wordmark-1.png" alt="" width="100%" /> <img src="man/figures/README-logo-wordmark-1.png" alt="" width="100%" />
### Mark on a dark plot ### Compact mark
Use `type = "mark"` for the compact icon and `variant = "dark"` to match Use `type = "mark"` for the compact C-pulse icon instead of the full
a dark background. wordmark.
``` r ``` r
p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) + p2_logo <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
geom_point(size = 2) + geom_point(size = 2) +
scale_color_civilytics() + scale_color_civilytics() +
labs( labs(
@@ -190,12 +190,12 @@ p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
colour = "Cylinders", colour = "Cylinders",
x = "Displacement (L)", y = "Highway MPG" x = "Displacement (L)", y = "Highway MPG"
) + ) +
theme_civilytics_dark() theme_civilytics()
grid::grid.draw(civilytics_logo(p_dark, type = "mark", variant = "dark")) grid::grid.draw(civilytics_logo(p2_logo, type = "mark"))
``` ```
<img src="man/figures/README-logo-dark-1.png" alt="" width="100%" /> <img src="man/figures/README-logo-mark-1.png" alt="" width="100%" />
### Multi-plot layout with logo ### Multi-plot layout with logo
Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB