-
Notifications
You must be signed in to change notification settings - Fork 1
/
genlogo.R
57 lines (49 loc) · 970 Bytes
/
genlogo.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#install.packages("hexSticker")
library(hexSticker)
#install.packages("ggplot2")
library(ggplot2)
library(png)
library(grid)
library(cowplot)
library(magick)
theme_set(theme_cowplot())
r = ggdraw() +
draw_image(
image_background(
image_read_pdf("man/figures/ABC.pdf"),
'none'),
scale = .55)
sticker(
r,
package = "networkABC",
p_size = 7,
s_x = .98,
s_y = 0.72,
s_width = 1.7,
s_height = 1.3,
p_x = 1,
p_y = 1.3,
url = "https://cran.r-project.org/package=networkABC",
u_color = "white",
u_size = 1.05,
h_fill = "black",
h_color = "grey",
filename = "man/figures/logo.png"
)
sticker(
r,
package = "networkABC",
p_size = 7,
s_x = .98,
s_y = 0.72,
s_width = 1.7,
s_height = 1.3,
p_x = 1,
p_y = 1.3,
url = "https://cran.r-project.org/package=networkABC",
u_color = "white",
u_size = 1.05,
h_fill = "black",
h_color = "grey",
filename = "man/figures/logo_networkABC.svg"
)