Skip to content

Commit db030fd

Browse files
Merge branch 'devel'
2 parents 28e8715 + fb5d591 commit db030fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+309
-20
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
release:
7+
types: [published]
8+
workflow_dispatch:
9+
10+
name: pkgdown
11+
12+
jobs:
13+
pkgdown:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- uses: r-lib/actions/setup-pandoc@v1
21+
22+
- uses: r-lib/actions/setup-r@v1
23+
with:
24+
use-public-rspm: true
25+
26+
- uses: r-lib/actions/setup-r-dependencies@v1
27+
with:
28+
extra-packages: pkgdown
29+
needs: website
30+
31+
- name: Deploy package
32+
run: |
33+
git config --local user.name "$GITHUB_ACTOR"
34+
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
35+
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ vignettes/*.pdf
4242

4343
*.Rproj
4444
.Rproj.user
45+
46+
inst/doc
47+
docs

DESCRIPTION

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: gglgbtq
22
Type: Package
33
Title: Show Pride on 'ggplot2' Plots
4-
Version: 0.1.0
4+
Version: 0.1.1
55
Date: 2022-08-06
66
Authors@R: c(person("Laura", "Bakala",
77
email = "erdaradun.gaztea@gmail.com",
@@ -12,12 +12,16 @@ Imports:
1212
graphics,
1313
grDevices
1414
Suggests:
15+
knitr,
16+
rmarkdown,
1517
spelling,
1618
testthat (>= 3.0.0)
1719
License: GPL (>= 3)
1820
Encoding: UTF-8
1921
Roxygen: list(markdown = TRUE)
2022
RoxygenNote: 7.1.2
2123
Config/testthat/edition: 3
22-
URL: https://github.com/turtletopia/gglgbtq
24+
URL: https://github.com/turtletopia/gglgbtq,
25+
https://turtletopia.github.io/gglgbtq/
2326
Language: en-US
27+
VignetteBuilder: knitr

NEWS.md

Lines changed: 6 additions & 0 deletions

R/themes.R

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,32 @@ theme_lgbtq_white <- function(...) {
5353
)
5454
}
5555

56-
# Default settings are fine
57-
theme_bisexual <- ggplot2::theme
56+
theme_agender <- function(...) {
57+
ggplot2::theme(
58+
panel.background = element_rect(fill = "#DDE3D8", color = NA),
59+
panel.grid.minor = element_line(size = rel(0.5)),
60+
legend.key = element_rect(fill = "#DDE3D8", color = NA),
61+
...
62+
)
63+
}
64+
65+
theme_demiboy <- function(...) {
66+
ggplot2::theme(
67+
panel.background = element_rect(fill = "#D8E0E3", color = NA),
68+
panel.grid.minor = element_line(size = rel(0.5)),
69+
legend.key = element_rect(fill = "#D8E0E3", color = NA),
70+
...
71+
)
72+
}
73+
74+
theme_demigirl <- function(...) {
75+
ggplot2::theme(
76+
panel.background = element_rect(fill = "#E3DADD", color = NA),
77+
panel.grid.minor = element_line(size = rel(0.5)),
78+
legend.key = element_rect(fill = "#E3DADD", color = NA),
79+
...
80+
)
81+
}
82+
83+
# Default settings are fine too
84+
theme_ggplot2 <- ggplot2::theme

R/zzz_data.R

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pride_data <- list(
1313
),
1414
bisexual = list(
1515
colors = c("#D00070", "#8C4799", "#0032A0"),
16-
theme = theme_bisexual
16+
theme = theme_ggplot2
1717
),
1818
asexual = list(
1919
colors = c("#000000", "#A4A4A4", "#FFFFFF", "#810081")
@@ -31,7 +31,7 @@ pride_data <- list(
3131
lesbian = list(
3232
colors = c("#D62900", "#FF9B55", "#FFFFFF", "#D461A6", "#A50062")
3333
),
34-
gay_man = list(
34+
gay = list(
3535
colors = c("#078D70", "#98E8C1", "#FFFFFF", "#7BADE2", "#3D1A78")
3636
),
3737
intersex = list(
@@ -50,7 +50,29 @@ pride_data <- list(
5050
lesbian_7 = list(
5151
colors = c("#A60061", "#B95594", "#D162A8", "#FFFFFF", "#E5ADD1", "#C64D53", "#8C1801")
5252
),
53-
gay_man_7 = list(
53+
gay_7 = list(
5454
colors = c("#078D70", "#26CEAA", "#98E8C1", "#FFFFFF", "#7BADE2", "#5049CC", "#3D1A78")
55+
),
56+
agender = list(
57+
colors = c("#000000", "#BCC4C7", "#FFFFFF", "#B7F684"),
58+
theme = theme_agender
59+
),
60+
demiboy = list(
61+
colors = c("#7F7F7F", "#C4C4C4", "#9DD7EA", "#FFFFFF"),
62+
theme = theme_demiboy
63+
),
64+
demigirl = list(
65+
colors = c("#7F7F7F", "#C4C4C4", "#FDADC8", "#FFFFFF"),
66+
theme = theme_demigirl
67+
),
68+
bigender = list(
69+
colors = c("#C479A2", "#EDA5CD", "#D6C7E8", "#FFFFFF", "#9AC7E8", "#6D82D1"),
70+
theme = theme_ggplot2
71+
),
72+
alloace = list(
73+
colors = c("#D50100", "#F85858", "#FFFFFF", "#81007F")
74+
),
75+
aroallo = list(
76+
colors = c("#3DA542", "#A8D379", "#FFFFFF", "#FBE34B", "#E8BB00")
5577
)
5678
)

README.Rmd

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,21 @@ ggplot(data, aes(x = x, y = y, fill = as.factor(group))) +
7676

7777
## Gallery
7878

79+
Only a few most common palettes are included below. For the complete list, see [palette gallery vignette](https://turtletopia.github.io/gglgbtq/articles/gallery.html).
80+
7981
```{r}
8082
palette_lgbtq("rainbow")
8183
palette_lgbtq("philadelphia")
8284
palette_lgbtq("progress")
8385
palette_lgbtq("lesbian")
84-
palette_lgbtq("gay_man")
86+
# In its original meaning of "gay men"
87+
palette_lgbtq("gay")
8588
palette_lgbtq("bisexual")
8689
# Background added to avoid the "disappearance" of the white stripe
8790
print(palette_lgbtq("transgender"), background = "gray92")
8891
palette_lgbtq("asexual")
89-
palette_lgbtq("pansexual")
9092
palette_lgbtq("nonbinary")
9193
palette_lgbtq("intersex")
92-
palette_lgbtq("aromantic")
93-
palette_lgbtq("genderfluid")
94-
palette_lgbtq("genderqueer")
95-
# Alternative version of 5-stripes lesbian flag
96-
palette_lgbtq("lesbian_7")
97-
# Alternative version of 5-stripes gay men flag
98-
palette_lgbtq("gay_man_7")
9994
```
10095

10196
## End notes
-3.36 KB
Binary file not shown.
-3.37 KB
Binary file not shown.
-3.34 KB
Binary file not shown.

0 commit comments

Comments
 (0)