Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on making faceted SPC Charts #14

Open
craig-shenton opened this issue Sep 13, 2022 · 0 comments
Open

Add documentation on making faceted SPC Charts #14

craig-shenton opened this issue Sep 13, 2022 · 0 comments
Labels
docs Improvements or additions to documentation

Comments

@craig-shenton
Copy link
Contributor

Add to docs on 'Visualising Data in R' page

Example from Simon Wellesley-Miller:

library(NHSRdatasets)
library(NHSRplotthedots)
library(tidyverse)

df <- ae_attendances %>%
filter (org_code %in% c('RBN', 'REF', 'RWY', 'RGN'),
type == '1')

plot_obj <- ptd_spc(
df,
value_field = attendances,
date_field = period,
facet_field = org_code,
improvement_direction = "decrease"
)

plot <- ptd_create_ggplot(
plot_obj,
icons_position = 'none',
x_axis_date_format = "%b-%y"
@craig-shenton craig-shenton added the docs Improvements or additions to documentation label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
Development

No branches or pull requests

1 participant