knitr::opts_chunk$set(echo = FALSE, dpi = 300) library(ggplot2) # Create a pseudo chart yr <- c(rep("2014-15", times = 8), rep("2015-16", times = 8)) mth <- rep(c("Apr", "May", "Jun", "July", "Aug", "Sep", "Oct", "Nov"), times = 2) counts <- c(1100, 1220, 1240, 1250, 1290, 1300, 1380, 1350, 1100, 1140, 1150, 1150, 1190, 1260, 1270, 1280) chart_data <- data.frame(yr, mth, counts) chart <- ggplot(data = chart_data, aes(x = mth, y = counts, group = yr, color = yr, shape = yr)) + geom_line(size = 0.75) + geom_point(size = c(rep(3, 8), rep(2.5, 8))) + xlab("Month") + scale_x_discrete(limits = c("Apr", "May", "Jun", "July", "Aug", "Sep", "Oct", "Nov"), labels = c("Apr", "May", "Jun", "July", "Aug", "Sep", "Oct", "Nov")) + scale_y_continuous(breaks = c(200, 400, 600, 800, 1000, 1200, 1400, 1600), labels = c("200", "400", "600", "800", "1,000", "1,200", "1,400", "1,600"), limits = c(0, 1600), expand = expansion(mult = 0)) + scale_color_manual(values = c("#9B4393", "#0078D4")) + scale_shape_manual(values = c("diamond", "square")) + theme( plot.title = element_text(hjust = 0.5, face = "bold", size = 12, colour = "#6C2383"), plot.margin = margin(l = 30, b = 10), panel.background = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank(), panel.grid.major.y = element_line(size = 0.4, color = "#969696"), panel.border = element_rect(colour = "#969696", fill = NA, size = 0.75), legend.position = "top", legend.title = element_blank(), legend.box.spacing = unit(0, "cm"), legend.box.margin = margin(b = 0), legend.key.height = unit(10, "pt"), legend.key.width = unit(30, "pt"), legend.text = element_text(size = 8), axis.title.x = element_text(size = 8, face = "bold", margin = margin(t = 10)), axis.title.y = element_blank(), axis.text.x = element_text(size = 7.5, color = "black"), axis.text.y = element_text(size = 7, color = "black"), axis.line = element_line(colour = "grey"), axis.ticks = element_line(colour = "grey") )
Vestibulum lacinia, turpis eu sagittis lacinia, justo orci blandit orci, ut suscipit tortor turpis et metus. Pellentesque sollicitudin nisl et porttitor laoreet. Nunc id purus pretium, suscipit justo vitae, pretium dui. Quisque congue ex dignissim tellus pulvinar, a interdum libero fermentum.
Proin nec ultricies dolor. Maecenas pulvinar, enim et imperdiet cursus, mi
chart
Maecenas bibendum consequat vehicula. Fusce id viverra lorem, et
Aliquam sed maximus ante, a imperdiet est. Vivamus vel diam facilisis, pulvinar erat consequat, consequat nulla. Praesent lorem dolor, luctus ut libero vitae, venenatis congue tortor.
Nunc at mauris euismod, mattis tellus sed, vehicula dolor. Duis quis auctor elit. Fusce eu dui eu magna convallis porttitor in ac purus. Proin sed tellus massa. In pulvinar augue sit amet faucibus maximus. Aenean porttitor arcu vitae lacus fringilla condimentum. Praesent laoreet, felis non dignissim viverra, libero nunc eleifend sapien, sed dignissim felis risus et tellus.
Name | Role | Number | phs.generic-team-email@phs.scot
Name | Role | Number | phs.generic-team-email@phs.scot
For all media enquiries please email phs.comms@phs.scot or call 0131 275 6105.
Data from this publication are available from the publication page on our website.
Open data from this publication is available from the Scottish Health and Social Care Open Data platform.
Our statistical practice is regulated by the Office for Statistics Regulation (OSR). Official Statistics in development are official statistics which are undergoing a development.
Visit our website for further information about our statistics and PHS as an Official Statistics producer.
The next release of this publication will be DD Month YYYY.
Other formats of this publication are available on request by calling 0131 314 5300 or emailing phs.otherformats@phs.scot.
A selection of information from this publication is included in NHS Performs. NHS Performs is a website that brings together a range of information on how hospitals and NHS Boards within NHSScotland are performing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.