Skip to content

Commit

Permalink
Merge pull request #9 from oliviaAB/main
Browse files Browse the repository at this point in the history
Added hidecan logo
  • Loading branch information
oliviaAB authored Oct 27, 2023
2 parents 9779378 + 1ee7874 commit 193ada0
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ knitr::opts_chunk$set(
)
```

# hidecan
# hidecan <img src="man/figures/logo.png" align="right" alt="" width="120" />

<!-- badges: start -->
<!-- badges: end -->
Expand Down
2 changes: 1 addition & 1 deletion 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 -->

# hidecan
# hidecan <img src="man/figures/logo.png" align="right" alt="" width="120" />

<!-- badges: start -->
<!-- badges: end -->
Expand Down
70 changes: 70 additions & 0 deletions data-raw/make_logo.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
library(hexSticker)
library(hidecan)
library(tibble)
library(ggplot2)

z <- list()

z[["GWAS"]] <- tibble(
chromosome = "chromosome 1",
position = c(0, 15, 80, 100),
score = c(0.1, 5, 6.5, 0.1)
)

z[["DE"]] <- tibble(
chromosome = "chromosome 1",
start = c(0, 15.5, 40, 50, 52, 79, 100),
end = start,
score = c(0.1, 5, 4.5, 8, 6.5, 3.5, 0.1),
log2FoldChange = 3
)

z[["CAN"]] <- tibble(
chromosome = "chromosome 1",
start = c(50.5, 79.5),
end = start,
name = c("", "")
)

hidecan_plot <- hidecan_plot(
gwas_list = z$GWAS,
de_list = z$DE,
can_list = z$CAN,
title = "HIDECAN plot",
point_size = 1.5,
label_size = 3.5
) +
labs(
title = NULL,
x = NULL
) +
theme(
axis.text.x = element_blank(),
axis.ticks.x = element_blank(),
axis.text.y = element_blank(),
axis.ticks.y = element_blank(),
legend.position = "none",
strip.background.x = element_rect(fill = "#6cc3c6"),
strip.text.x = element_text(
margin = margin(0, 0, 0, 0),
color = NA
),
panel.grid = element_blank()
) +
theme_transparent()

col_border <- "#399093"
col_background <- "#ceebec"
sticker(
hidecan_plot,
package = "hidecan",
p_size = 20,
p_color = col_border,
s_x = 1,
s_y = 0.8,
s_width = 1.3,
s_height = 0.7,
h_color = col_border,
h_fill = col_background,
filename = "man/figures/logo.png"
)
Binary file modified man/figures/README-brief-example-hidecan-plot-1.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 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 added pkgdown/favicon/apple-touch-icon-120x120.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/apple-touch-icon-152x152.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/apple-touch-icon-180x180.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/apple-touch-icon-60x60.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/apple-touch-icon-76x76.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/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 added pkgdown/favicon/favicon-16x16.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/favicon-32x32.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/favicon.ico
Binary file not shown.
50 changes: 25 additions & 25 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "jendelman",
"RemoteRepo": "GWASpoly",
"RemoteRef": "master",
"RemoteUsername": "jendelman",
"RemoteRef": "HEAD",
"RemoteSha": "d296a13c6445169c0c7641757833c856f48c04bb",
"Hash": "3254a7d35839eb5d65843c0f37a776d8",
"Hash": "f1d969f781c99b76dc4d9ccfc81d8fcb",
"Requirements": [
"Matrix",
"ggplot2",
Expand Down Expand Up @@ -73,10 +73,10 @@
},
"Rcpp": {
"Package": "Rcpp",
"Version": "1.0.9",
"Version": "1.0.10",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "e9c08b94391e9f3f97355841229124f2",
"Hash": "e749cae40fa9ef469b6050959517453c",
"Requirements": []
},
"askpass": {
Expand Down Expand Up @@ -299,10 +299,10 @@
},
"data.table": {
"Package": "data.table",
"Version": "1.14.2",
"Version": "1.14.6",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "36b67b5adf57b292923f5659f5f0c853",
"Hash": "aecef50008ea7b57c76f1cb5c127fb02",
"Requirements": []
},
"dbplyr": {
Expand Down Expand Up @@ -483,10 +483,10 @@
},
"fastmap": {
"Package": "fastmap",
"Version": "1.1.0",
"Version": "1.1.1",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "77bd60a6157420d4ffa93b27cf6a58b8",
"Hash": "f7736a18de97dea803bde0a2daaafb27",
"Requirements": []
},
"fontawesome": {
Expand Down Expand Up @@ -568,10 +568,10 @@
},
"ggnewscale": {
"Package": "ggnewscale",
"Version": "0.4.7",
"Version": "0.4.8",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "df57a381783476d083e9f7350d382c3d",
"Hash": "871327b44b04bfb19dc28f60b96806c1",
"Requirements": [
"ggplot2"
]
Expand Down Expand Up @@ -839,10 +839,10 @@
},
"jsonlite": {
"Package": "jsonlite",
"Version": "1.8.4",
"Version": "1.8.5",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "a4269a09a9b865579b2635c77e572374",
"Hash": "3ee4d9899e4db3e976fc82b98d24a31a",
"Requirements": []
},
"knitr": {
Expand All @@ -869,10 +869,10 @@
},
"later": {
"Package": "later",
"Version": "1.3.0",
"Version": "1.3.1",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "7e7b457d7766bc47f2a5f21cc2984f8e",
"Hash": "40401c9cf2bc2259dfe83311c9384710",
"Requirements": [
"Rcpp",
"rlang"
Expand Down Expand Up @@ -1111,10 +1111,10 @@
},
"processx": {
"Package": "processx",
"Version": "3.8.0",
"Version": "3.8.1",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "a33ee2d9bf07564efb888ad98410da84",
"Hash": "d75b4059d781336efba24021915902b4",
"Requirements": [
"R6",
"ps"
Expand Down Expand Up @@ -1160,10 +1160,10 @@
},
"ps": {
"Package": "ps",
"Version": "1.7.2",
"Version": "1.7.5",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "68dd03d98a5efd1eb3012436de45ba83",
"Hash": "709d852d33178db54b17c722e5b1e594",
"Requirements": []
},
"purrr": {
Expand All @@ -1179,10 +1179,10 @@
},
"ragg": {
"Package": "ragg",
"Version": "1.2.3",
"Version": "1.2.4",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "a7b1a8b453c5385786cdfa75aba57483",
"Hash": "0db17bd5a1d4abfec76487b6f5dd957b",
"Requirements": [
"systemfonts",
"textshaping"
Expand Down Expand Up @@ -1306,10 +1306,10 @@
},
"rlang": {
"Package": "rlang",
"Version": "1.0.6",
"Version": "1.1.1",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "4ed1f8336c8d52c3e750adcdc57228a7",
"Hash": "a85c767b55f0bf9b7ad16c6d7baee5bb",
"Requirements": []
},
"rmarkdown": {
Expand Down Expand Up @@ -1867,10 +1867,10 @@
},
"xfun": {
"Package": "xfun",
"Version": "0.35",
"Version": "0.39",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "f576593107bdf9aa7db48ef75a8c05fb",
"Hash": "8f56e9acb54fb525e66464d57ab58bcb",
"Requirements": []
},
"xml2": {
Expand Down

0 comments on commit 193ada0

Please sign in to comment.