-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
86 lines (64 loc) · 1.94 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# datademon
This is a package that has some common functions and styles that are useful for Wake Forest University. This includes:
## Stylistic Points
* Color Pallettes
* Font Selections
* Chart Formatting
## USeful Functions
These have been gathered over my experience and can be useful
* Exploratory Data Analysis Tools
* Common Functions I use
* Data cleaning Tools
## Installation
You can install datademon from GitHub with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("medewitt/datademon")
```
##Guide
### Application of the Wake Style Guide
```{r}
library(datademon)
library(ggplot2)
library(extrafont)
library(rlang)
suppressPackageStartupMessages(library(tidyverse))
ggplot(diamonds, aes(carat, price, group = color, color = color))+
geom_point()+
scale_colour_wake()+
theme_wake()
```
###Application of the Wellbeing Survey Template
```{r}
library(extrafont)
ggplot(diamonds, aes(carat, price, group = color, color = color))+
geom_point()+
scale_colour_wellness()+
theme_wellbeing()
```
###Application of Likert Six Scale
```{r}
datademon::update_geom_font_defaults()
make_wellbeing_charts(data = survey_sample, "ACAENG_ACAENG_1", likert_scale = "agreement")+ylab("")+xlab("")
```
```{r}
make_wellbeing_charts(data = survey_sample, "ACTIVITIES_1_9", likert_scale = "frequency")
```
###Application of
## Thanks
Not all of these tools originated from me. Many have been stolen with pride and modified.
Special thanks to Bob Rudis for his work with the hrbrthemes package which helped me create all of my themes.
Additional thanks to Karl Broman for some of his tools.
And of course to RStudio for making the tools easier and easier to use.