Skip to content

Commit

Permalink
Merge branch 'feature/update-logo' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Jan 6, 2025
2 parents ce848d1 + 8e4760f commit b790f39
Show file tree
Hide file tree
Showing 22 changed files with 104 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
^CRAN-SUBMISSION$
^revdep$
^python$
inst/doxygen
inst/doxygen
logo
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(
options(digits = 3)
```

# bvhar <img src='man/figures/logo.png' align="right" height="139" />
# bvhar <img src="man/figures/logo.png" align="right" height="139" alt="" />

<!-- badges: start -->
[![R-CMD-check](https://github.com/ygeunkim/bvhar/actions/workflows/R-CMD-check.yaml/badge.svg?branch=master)](https://github.com/ygeunkim/bvhar/actions/workflows/R-CMD-check.yaml?query=branch%3Amaster)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# bvhar <img src='man/figures/logo.png' align="right" height="139" />
# bvhar <img src="man/figures/logo.png" align="right" height="139" alt="" />

<!-- badges: start -->

Expand Down Expand Up @@ -290,7 +290,7 @@ Please cite this package with following BibTeX:
author = {Young Geun Kim and Changryong Baek},
year = {2023},
doi = {10.32614/CRAN.package.bvhar},
note = {R package version 2.1.1},
note = {R package version 2.1.2.9008},
url = {https://cran.r-project.org/package=bvhar},
}

Expand Down
75 changes: 75 additions & 0 deletions logo/bvhar-hex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
library(tidyverse)
library(hexSticker)
# Subplot--------------------------------------
img_plt <-
tibble(
x = 1:5,
y1 = c(0, 1, .5, 2, 1.5),
y2 = c(1, 2, 1.5, 3, 2.5)
) |>
pivot_longer(-x, names_to = "series", values_to = "value") |>
mutate(
ymin = case_when(
x == 3 ~ value,
x > 3 ~ value - .2,
.default = NA
),
ymax = case_when(
x == 3 ~ value,
x > 3 ~ value + .2,
.default = NA
)
) |>
ggplot(aes(x = x, y = value)) +
geom_ribbon(aes(ymin = ymin, ymax = ymax, fill = series), alpha = .9, col = NA, na.rm = TRUE) +
scale_fill_manual(values = c("#F5ECD5", "#D0DDD0")) +
geom_path(aes(color = series)) +
scale_color_manual(values = c("#D8C4B6", "#3E5879")) +
guides(color = "none", fill = "none") +
theme_void() +
theme_transparent()
# Save sticker---------------------------------
sysfonts::font_add_google("Noto Sans")
sticker(
# Subplot
subplot = img_plt,
s_x = 1,
s_y = .9,
s_width = 1.5,
s_height = 1.5 * .618,
# Package name
package = c("b", "vhar"),
p_family = "Noto Sans",
p_fontface = "plain",
p_size = 12,
p_x = c(.5, 1.1),
p_y = 1.25,
p_color = c("#F39E60", "#F0BB78"),
# Hexagon
h_size = 1.2,
h_fill = "#FFF0DC",
h_color = "#131010",
# Spotlight
spotlight = FALSE,
l_x = 1,
l_y = 0.5,
l_width = 3,
l_height = 3,
l_alpha = 0.4,
# URL
url = "ygeunkim.github.io/package/bvhar",
u_x = 1,
u_y = 0.08,
u_color = "black",
u_family = "Noto Sans",
u_size = 1,
u_angle = 30,
# Save
white_around_sticker = FALSE,
filename = "./logo/bvhar-logo.png",
asp = 1,
dpi = 300
)
# usethis--------------------------------------
usethis::use_logo("./logo/bvhar-logo.png")
pkgdown::build_favicons(pkg = ".", overwrite = FALSE)
Binary file added logo/bvhar-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Binary file removed pkgdown/favicon/apple-touch-icon-120x120.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-152x152.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-60x60.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-76x76.png
Binary file not shown.
Binary file modified pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed pkgdown/favicon/favicon-16x16.png
Binary file not shown.
Binary file removed pkgdown/favicon/favicon-32x32.png
Binary file not shown.
Binary file added pkgdown/favicon/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions pkgdown/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions pkgdown/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added pkgdown/favicon/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified python/docs/favicon.ico
Binary file not shown.
Binary file modified python/docs/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 b790f39

Please sign in to comment.