fix: use light-variant mark in logo example to match light logo area
R-CMD-check / R CMD check (push) Successful in 3m42s
R-CMD-check / R CMD check (push) Successful in 3m42s
This commit is contained in:
+7
-7
@@ -207,13 +207,13 @@ p <- ggplot(mpg, aes(displ, hwy, colour = class)) +
|
||||
grid::grid.draw(civilytics_logo(p))
|
||||
```
|
||||
|
||||
### Mark on a dark plot
|
||||
### Compact mark
|
||||
|
||||
Use `type = "mark"` for the compact icon and `variant = "dark"` to
|
||||
match a dark background.
|
||||
Use `type = "mark"` for the compact C-pulse icon instead of the full
|
||||
wordmark.
|
||||
|
||||
```{r logo-dark, fig.height = 4.5, fig.width = 7}
|
||||
p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
|
||||
```{r logo-mark, fig.height = 4.5, fig.width = 7}
|
||||
p2_logo <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
|
||||
geom_point(size = 2) +
|
||||
scale_color_civilytics() +
|
||||
labs(
|
||||
@@ -221,9 +221,9 @@ p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) +
|
||||
colour = "Cylinders",
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user