Skip to content

helper function to add ois style to ggplot2

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

brilstl/ggtheme.ois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggtheme.ois

De {{ggtheme.ois}} package is bedoeld om makkelijk plots te maken in OIS-huistijl. Het uitgangspunt is om zo snel mogelijk van dataset naar output te komen.

Installation

De package kan als volgt worden geïnstalleerd van GitHub:

# install.packages("devtools")
devtools::install_github("brilstl/ggtheme.ois")

Example

Dit is een voorbeeld van een veel voorkomende plot binnen OIS:

library(ggtheme.ois)

likert_plot(.data = mtcars, y_as = gear, fill = carb)

De facet = ... functionaliteit kan worden toegepast om meerdere groepen onafhankelijk in een plot te tonen. Deze variabelen moet tussen aanhalingstekens worden doorgegeven aan de functie.

likert_plot(.data = mtcars, y_as = gear, fill = carb, facet = vs)

Een andere mogelijkheid is om een donut plot te maken. De syntax is vergelijkbaar alleen dan natuurlijk zonder de y as.

donut_plot(.data = mtcars, fill = carb, facet = 'vs')

Een gewone bar plot kan ook gemaakt worden:

bar_plot(.data = mtcars, y_as = carb)

About

helper function to add ois style to ggplot2

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages