-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvariousViz.R
48 lines (35 loc) · 998 Bytes
/
variousViz.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
#################
### Section 1 ###
#################
# Section 1
library(dplyr)
# Section 2
library(dplyr)
# Section 3
library(psych)
library(ggridges)
library(viridis)
library(ggplot2)
library(dplyr)
scaleStuff = bfi %>%
dplyr::select(starts_with("C")) %>%
tidyr::gather(key = question, value = score) %>%
ggplot(., aes(score, question, fill = ..x..)) +
geom_density_ridges_gradient() +
scale_fill_viridis(option = "B") +
theme_void() +
theme_transparent() +
theme(legend.position="none")
library(hexSticker)
sticker("bds/Rlogo.png", package="",
s_x = 1, s_y = 1.05,
s_width = .8, s_height = .8,
h_fill = "white", h_color = "#1e66b7",
spotlight = TRUE, l_alpha = .2,
filename = "bds/logoHex.png")
sticker(scaleStuff, package="",
s_x = 1, s_y = 1.00,
s_width = 1.3, s_height = 1.3,
h_fill = "white", h_color = "#1e66b7",
spotlight = TRUE, l_alpha = .2,
filename = "bds/test.png")