Skip to content

Commit

Permalink
Merge pull request #75 from dfe-analytical-services/expand_acronyms
Browse files Browse the repository at this point in the history
Expand acronyms
  • Loading branch information
chfoster committed May 31, 2024
2 parents 3ac7758 + 322d6d7 commit 5c52daf
Show file tree
Hide file tree
Showing 11 changed files with 221 additions and 210 deletions.
25 changes: 13 additions & 12 deletions R/dashboard_panels.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ homepage_panel <- function() {
gov_row(
column(
12,
h1("DfE Analytical Services R-Shiny data dashboard template (h1)"),
h1("Department for Education (DfE) Analytical Services R-Shiny data dashboard template"),
br(),
br()
),
Expand All @@ -24,12 +24,12 @@ homepage_panel <- function() {
class = "panel-heading",
style = "color: white;font-size: 18px;font-style: bold;
background-color: #1d70b8;",
h2("Contents (h2)")
h2("Contents")
),
div(
class = "panel-body",
tags$div(
h3("Introduction (h3)"),
h3("Introduction"),
p("This app demonstrates the DfE Analytical Services R-Shiny
data dashboard template."),
p("You might want to add some brief introductory text here
Expand All @@ -56,11 +56,11 @@ homepage_panel <- function() {
class = "panel-heading",
style = "color: white;font-size: 18px;font-style: bold;
background-color: #1d70b8;",
h2("Background Info (h2)")
h2("Background Info")
),
div(
class = "panel-body",
h3("Context and purpose (h3)"),
h3("Context and purpose"),
p("This app is the DfE Analytical Service's R-Shiny template
demonstration app and is being developed to provide a coherent
styling for DfE dashboards alongside some useful example
Expand All @@ -69,9 +69,10 @@ homepage_panel <- function() {
styling and layout, keeping the header, footer and side
navigation list formats."),
p("You might want to add some relevant background information
for your users here. For example some useful links to your EES
for your users here. For example some useful links to your
Explore Education Statistics (EES)
publication, data sources and other relevant resources."),
h3("Guidance sources (h3)"),
h3("Guidance sources"),
p("For example, here we'll add some of the key resources we draw
on to guide styling and vizualisation...")
)
Expand All @@ -96,7 +97,7 @@ dashboard_panel <- function() {
gov_row(
column(
width = 12,
h1("Overall content title for this dashboard page (h1)"),
h1("Overall content title for this dashboard page"),
),
column(
width = 12,
Expand Down Expand Up @@ -147,7 +148,7 @@ dashboard_panel <- function() {
fluidRow(
column(
width = 12,
h2("Examples of producing value boxes in R-Shiny (h2)"),
h2("Examples of producing value boxes in R-Shiny"),
fluidRow(
column(
width = 12,
Expand Down Expand Up @@ -177,7 +178,7 @@ dashboard_panel <- function() {
fluidRow(
column(
width = 12,
h2("An example line chart using ggplot and ggiraph (h2)"),
h2("An example line chart using ggplot and ggiraph"),
girafeOutput("lineRevBal", width = "100%", height = "100%")
)
)
Expand All @@ -187,7 +188,7 @@ dashboard_panel <- function() {
fluidRow(
column(
width = 12,
h2("An example bar chart using ggplot and ggiraph (h2)"),
h2("An example bar chart using ggplot and ggiraph"),
p("This is the standard paragraph style for adding guiding
info around data content."),
column(
Expand All @@ -206,7 +207,7 @@ dashboard_panel <- function() {
column(
width = 12,
selectizeInput("selectBenchLAs",
"Select benchmark LAs",
"Select benchmark local authorities",
choices = choicesLAs$area_name,
multiple = TRUE,
options = list(maxItems = 3)
Expand Down
7 changes: 5 additions & 2 deletions global.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ appLoadingCSS <- "
}
"

site_title <- "DfE Shiny Template"
site_title <- "Department for Education (DfE) Shiny Template"
site_primary <- "https://department-for-education.shinyapps.io/dfe-shiny-template/"
site_overflow <- "https://department-for-education.shinyapps.io/dfe-shiny-template-overflow/"
# We can add further mirrors where necessary. Each one can generally handle
Expand All @@ -94,7 +94,10 @@ google_analytics_key <- "Z967JJVQQX"
source("R/read_data.R")

# Read in the data
dfRevBal <- read_revenue_data()
dfRevBal <- read_revenue_data() %>%
mutate(school_phase = case_when(school_phase == "All LA maintained schools" ~ "All local authority maintained schools",
.default = school_phase
))
# Get geographical levels from data
dfAreas <- dfRevBal %>%
select(
Expand Down
Loading

0 comments on commit 5c52daf

Please sign in to comment.