dfe-analytical-services / dfeR

Common R tasks in the Department for Education (DfE)
https://dfe-analytical-services.github.io/dfeR/
GNU General Public License v3.0
9 stars 2 forks source link

Port govstyle to dfeR #33

Closed adamrobinson361 closed 7 months ago

adamrobinson361 commented 6 years ago

Background

govstyle is an R package created by GDS that formats ggplots to standard styles as predefined to GDS.

It is no longer maintained nor does it match the DfE style exactly. It would be good to add this into dfeR with correct styling so it can be more widely adopted. Alongside the markdown theme it would allow us to easily and consistently format our publications and internal reports.

Steps to take

  1. Understand govstyle code.
  2. Define dfe theme. See matts gist
  3. Implement and test
cwthom commented 6 years ago

Is there a defined DfE style guide? Best I could find on the intranet was this document from 2016.

matt-dray commented 6 years ago

can't see your link @cwthom (i'm not in the office), but will dig up the style guide that was used to get the dept colours for this gist. is your question focused on plot structure and style in particular? i figure whatever we produce is going to be opinionated because of the inconsistency across the dept (e.g. consider the plots in the stats releases here and here).

adamrobinson361 commented 6 years ago

@matt-dray - Would be interested to see the doc you've got. I've definitely come accross approved colour lists in the past - not so sure about chart styles. Nevertheless it would be good if we could define one that we consistently use and encourage others to do so.

lauraselby commented 6 years ago

we did some stuff with govstyle for our Shiny app, but we didn't incorporate it efficiently. I think it's worth bringing HoP office in on this or the statistical policies working group (they're meeting tomorrow). The first step would be to decide if we (still?) want a DfE style that differs to GDS?