-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
65 lines (46 loc) · 1.65 KB
/
README.Rmd
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
58
59
60
61
62
63
64
65
---
output: github_document
---
# A package for antifa programmers
<img src="https://raw.githubusercontent.com/liibre/rladies_antifa/master/vignettes/figures/rladies_antifa_red.png" align="right" alt="" width="120" />
This package depend on the following libraries:
- __graphics__
- __magick__
- __plotrix__
To install the package use:
```
remotes::install_github("liibre/rladies_antifa")
```
In addition, you will have to load these packages:
```
# libraries
library(rladiesantifa)
library(hexSticker)
```
Here, we define the dark purple from RLadies
```
#colors
rladies <- "#562457" #rladies purple, for a lighter option use: #88398A both from rladies color palete
```
For the ANTIFA flag we use the public domain icon from [The Noun Project](https://thenounproject.com/search/?q=antifa&i=1245689). The function `antifa()` creates the flag with the desired title.
To create the hexSticker the image should be on disk (`save = TRUE`). We have seen that the text size is dependent on the OS. If it is too big or too small, use the argument `text.size` to control it.
```
antifa1 <- antifa(save = TRUE,
image_dir = "./figures/",
image_name = "antifa1")
```
```
sticker(antifa1,
package = "",
asp = 0.85,
s_x = 1, s_y = 1,
s_width = 1, s_height = 1,
p_size = 13,
h_fill = rladies, #bg color for hexsticker
h_color = "black",
filename = "figures/rladies_antifa_red.png")
```
## Other options of hexstickers
![](vignettes/figures/rladies_antifa_red.png)
![](vignettes/figures/rladies_antifa_purple.png)
![](vignettes/figures/rladies_antifa_light_purple.png)