All Projects → nhs-r-community → NHSRtheme

nhs-r-community / NHSRtheme

Licence: other
R package that helps to create plots that follow the NHS Identity

Programming Languages

r
7636 projects
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to NHSRtheme

runcharter
Automating run chart analysis for faceted displays of data across multiple metrics or locations
Stars: ✭ 31 (+63.16%)
Mutual labels:  rstats, nhs, nhs-r-community
NHSRdatasets
NHS and healthcare related datasets for training and learning R
Stars: ✭ 54 (+184.21%)
Mutual labels:  nhs, nhs-r-community
quickglobe
🌎 View Country Data via a 3D, D3, Globe 🌍
Stars: ✭ 22 (+15.79%)
Mutual labels:  rstats
teach-r-online
Materials for the Teaching statistics and data science online workshops in July 2020
Stars: ✭ 52 (+173.68%)
Mutual labels:  rstats
rsnps
Wrapper to a number of SNP web APIs
Stars: ✭ 44 (+131.58%)
Mutual labels:  rstats
workshops-setup cloud analytics machine
Tips and Tricks to setup a cloud machine for Analytics and Data Science with R, RStudio and Shiny Servers, Python and JupyterLab
Stars: ✭ 12 (-36.84%)
Mutual labels:  rstats
dotwhisker
Dot-and-Whisker Plots of Regression Results
Stars: ✭ 51 (+168.42%)
Mutual labels:  rstats
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (-10.53%)
Mutual labels:  rstats
rfordatasciencewiki
Resources for the R4DS Online Learning Community, including answer keys to the text
Stars: ✭ 40 (+110.53%)
Mutual labels:  rstats
pirate
🏴‍☠️ A personal platform for R programming
Stars: ✭ 36 (+89.47%)
Mutual labels:  rstats
waypointer
Waypoints & Animations for Shiny
Stars: ✭ 16 (-15.79%)
Mutual labels:  rstats
twinetverse
💫 Easily install and load packages for Twitter network analysis and visualisation
Stars: ✭ 19 (+0%)
Mutual labels:  rstats
mutant
mutation testing for R
Stars: ✭ 13 (-31.58%)
Mutual labels:  rstats
checkers
⛔ ARCHIVED ⛔ Automated checking of best practices for research compendia ✔️
Stars: ✭ 53 (+178.95%)
Mutual labels:  rstats
roadoi
Use Unpaywall with R
Stars: ✭ 60 (+215.79%)
Mutual labels:  rstats
schtools
Schloss Lab Tools for Reproducible Microbiome Research 💩
Stars: ✭ 22 (+15.79%)
Mutual labels:  rstats
rredlist
IUCN Red List API Client
Stars: ✭ 31 (+63.16%)
Mutual labels:  rstats
tRakt-shiny
Using trakt to graph show data and such. The on-it's-way-out incarnation of trakt.jemu.name
Stars: ✭ 17 (-10.53%)
Mutual labels:  rstats
bcmaps
An R package of map layers for British Columbia
Stars: ✭ 53 (+178.95%)
Mutual labels:  rstats
layer
Create stacked tilted maps
Stars: ✭ 97 (+410.53%)
Mutual labels:  rstats

NHS-R Theme

R build status

This repo attempts to build an R package that can provide themes to ggplot for producing charts that follow the NHS Identity.

Installing NHSRtheme

{NHSRtheme} is not currently on CRAN, so you will have to install it directly from Github using devtools.

If you do not have the devtools package installed, you will have to run the first line in the code below as well.

# install.packages('devtools')
devtools::install_github('nhs-r-community/NHSRtheme')

Examples

library(ggplot2)
library(NHSRtheme)
df <- data.frame(x = c("a", "b", "c", "d"), y = c(3, 4, 1, 2))
bars <- ggplot(df, aes(x, y, fill = x)) + 
    geom_bar(stat = "identity") + 
    labs(x = NULL, y = NULL) +
    theme(legend.position = "none")
bars + scale_fill_nhs()

bars + scale_fill_nhs(palette = 'blues')

bars + scale_fill_nhs(palette = 'neutrals') 

bars + scale_fill_nhs(palette = 'support greens')

df2 <- data.frame(x = c("a", "b", "c", "d", "e", "f" ,"g", "h"), 
                  y = c(3, 4, 1, 2, 5, 9, 7, 4))

bars2 <- ggplot(df2, aes(x, y, fill = x)) + 
    geom_bar(stat = "identity") + 
    labs(x = NULL, y = NULL) +
    theme(legend.position = "none")

bars2 + scale_fill_nhs(palette = 'highlights')

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].