diff --git a/README.Rmd b/README.Rmd index 33eb0c3..faa1a5c 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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 diff --git a/README.md b/README.md index cf9422a..ce00594 100644 --- a/README.md +++ b/README.md @@ -176,13 +176,13 @@ 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 -p_dark <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) + +p2_logo <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl))) + geom_point(size = 2) + scale_color_civilytics() + labs( @@ -190,12 +190,12 @@ 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 diff --git a/man/figures/README-logo-dark-1.png b/man/figures/README-logo-dark-1.png deleted file mode 100644 index 02a8f5d..0000000 Binary files a/man/figures/README-logo-dark-1.png and /dev/null differ diff --git a/man/figures/README-logo-mark-1.png b/man/figures/README-logo-mark-1.png new file mode 100644 index 0000000..2e4aaf3 Binary files /dev/null and b/man/figures/README-logo-mark-1.png differ