Skip to content

Commit

Permalink
Adding workaround to get phantomjs working
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Nov 11, 2024
1 parent d277635 commit 9756d5d
Show file tree
Hide file tree
Showing 2 changed files with 295 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nccis-la-report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ header-includes:
- \usepackage{fancyhdr}
- \usepackage{xpatch}
- \usepackage{booktabs}
- \usepackage{wrapfig}
- \onehalfspacing
- \pagestyle{fancy}
- \definecolor{gssmidblue}{RGB}{32, 115, 188}
Expand Down Expand Up @@ -68,6 +67,8 @@ close(connTitle)
```{r load packages, include=FALSE}
knitr::opts_knit$set(root.dir = "./")
knitr::opts_chunk$set(warning = FALSE, message = FALSE)
message("Installing PhantomJS")
Sys.setenv(OPENSSL_CONF = "/etc/ssl/")
webshot::install_phantomjs()
source("global.R")
source("R/plots.R")
Expand Down
293 changes: 293 additions & 0 deletions nccis-la-report.knit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
---
params:
input_la_choice: Barking and Dagenham
title: "Education, children's social care and offending, descriptive statistics: a focus on Barking and Dagenham"
author: "Department for Education"
header-includes:
- \usepackage{longtable}
- \usepackage{graphics}
- \usepackage{xparse}
- \usepackage{moresize}
- \usepackage{setspace}
- \usepackage{tcolorbox}
- \usepackage{wrapfig}
- \usepackage{helvet}
- \usepackage{sectsty}
- \usepackage{fancyhdr}
- \usepackage{xpatch}
- \usepackage{booktabs}
- \onehalfspacing
- \pagestyle{fancy}
- \definecolor{gssmidblue}{RGB}{32, 115, 188}
- \definecolor{dfeheadingblue}{RGB}{16, 79, 117}
- \renewcommand{\familydefault}{\sfdefault}
- \allsectionsfont{\color{dfeheadingblue}}
- \sectionfont{\color{dfeheadingblue}\fontsize{16}{18}\selectfont}
- \fancyhead[C]{}
- \fancyhead[L]{\nouppercase{\emph{\leftmark}}}
- \fancyhead[R]{}
- \fancyfoot[R]{\nouppercase{\emph{\rightmark}}}
- \fancyfoot[L]{}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- \futurelet\TMPfootrule\def\footrule{{\color{gssmidblue}\TMPfootrule}}
- \usepackage{floatrow}
- \floatsetup[figure]{capposition=top}
- \usepackage[titles]{tocloft}
- \renewcommand{\cftdot}{}
- \AtBeginDocument{\let\maketitle\relax}
- \usepackage{cellspace}
- \usepackage{etoolbox}
- \colorlet{headercolour}{DarkSeaGreen}

output:
pdf_document:
df_print: paged
toc: false
includes:
before_body: title.sty
urlcolor: blue
fontsize: 12pt
---












# NEET and not known


\includegraphics[width=1.25\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/gauge_chart_neetnk-1}





\begin{center}
\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.75\linewidth,
boxrule=0pt,
equal height group=introbox
]
2.9\%, stable 0 ppts
\tcblower
London: 3.4\%, down -0.1 ppts.

England: 5.2\%, up 0.5 ppts.

Annual changes are since end 2022.
\end{tcolorbox}
\end{center}



\includegraphics[width=1\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/gauge_chart_neet-1}







\makebox[1.00\linewidth]{
\centering

\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.49\linewidth,
boxrule=0pt,
equal height group=neetbox
]
2.8\%, up 0.2 ppts
\tcblower
London: 1.6\%, up 0.1 ppts.

England: 2.8\%, up 0.3 ppts.

Annual changes are since end 2022.
\end{tcolorbox}


\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.49\linewidth,
boxrule=0pt,
equal height group=neetbox
]
0.1\%, down -0.2 ppts
\tcblower
London: 1.8\%, down -0.2 ppts.

England: 2.4\%, up 0.3 ppts.

Annual changes are since end 2022.
\end{tcolorbox}
}

\newpage

# Vulnerable Groups NEET

\begin{wrapfigure}{l}{0.56\textwidth}

\includegraphics[width=1.05\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_vuln-1}
\end{wrapfigure}

A young person is said to be in a vulnerable group if they have any of the following characteristics (taken from IC01 of the NCCIS returns):
110 - Looked after/In care
130 - Refugee/Asylum seeker
140 - Carer-not own child
150 - Disclosed substance misuse
160 - Care leaver
170 - Supervised by YOT
190 - Parent-not caring for own child
200 - Alternative provision
210 - Mental health flag

---


\includegraphics[width=0.35\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_vuln2-1}
\includegraphics[width=0.35\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_vuln2-2}
\includegraphics[width=0.35\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_vuln2-3}

\newpage

# Participation
## Participating in education and training


\includegraphics[width=1.25\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/part_guage-1}





\begin{center}
\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.75\linewidth,
boxrule=0pt,
equal height group=introbox
]
96\%, down -0.1 ppts
\tcblower
London: 96\%, down -0.2 ppts.

England: 92.3\%, down -0.7 ppts.

Annual changes are since March 2023.
\end{tcolorbox}
\end{center}

### Type of education and training

\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/part_bar-1}


## September Guarantee: % offered an education place


\includegraphics[width=1.25\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/gauge_chart_Sept_Guar-1}





\begin{center}
\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.75\linewidth,
boxrule=0pt,
equal height group=introbox
]
98.7\%, up 1.2 ppts
\tcblower
London: 96.7\%, up 0.1 ppts.

England: 94.6\%, down -0.9 ppts.

Annual changes are since September 2022.
\end{tcolorbox}
\end{center}

\newpage

# Contextual - attainment and attendance
### Post 16 attainment


\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual1-1}
\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual1-2}

### GCSE attainment

\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual2-1}
\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual2-2}

### School attendance

\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual3-1}
\includegraphics[width=0.5\linewidth]{C:/Users/rbielby/AppData/Local/Temp/RtmpeOtUv7/file7b0010d27552_files/figure-latex/bar_chart_contextual3-2}

### 16-17 LA population


\makebox[1.00\linewidth]{
\centering

\begin{tcolorbox}[colback=gssmidblue,
leftright skip=0.1cm,
coltext=white,
halign=left,
fontupper={\Large \bfseries},
fontlower={\normalsize \bfseries},
sharp corners,
colframe=gssmidblue,
width=0.49\linewidth,
boxrule=0pt,
equal height group=popbox
]
6,874
\tcblower
Recorded on CCIS
\end{tcolorbox}
}

0 comments on commit 9756d5d

Please sign in to comment.