Skip to content

Commit

Permalink
Fixed color for logo
Browse files Browse the repository at this point in the history
  • Loading branch information
marberts committed Nov 15, 2023
1 parent df15bd6 commit 305f8ff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
^docs$
^pkgdown$
^inst/logo\.R$
^man/figures$
^man/figures$
^CRAN-SUBMISSION$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gpindex
Title: Generalized Price and Quantity Indexes
Version: 0.6.0
Version: 0.6.0.9000
Authors@R: c(
person("Steve", "Martin", role = c("aut", "cre", "cph"),
email = "[email protected]",
Expand Down
17 changes: 13 additions & 4 deletions inst/logo.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
library(ggplot2)
library(hexSticker)

sticker(ggplot() + theme_void(),
gg <- ggplot(data.frame(x = 1:4, y = c(1, 3, 2, 4))) +
geom_line(
aes(x, y),
arrow = arrow(angle = 20, ends = "last", type = "closed",
length = unit(0.1, "inch")),
linewidth = 1) +
theme_void()

sticker(gg,
package = "gpindex",
filename = "man/figures/logo.png",
p_y = 1.2,
s_x = 1,
s_width = 1,
p_size = 18,
p_family = "mono",
p_color = "#97b3b3",
p_color = "#a89ff9",
h_fill = "#f0f99f",
h_color = "#97b3b3")
h_color = "#a89ff9")
Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 305f8ff

Please sign in to comment.