Description Usage Arguments Details Value Examples
The function draws a timeline of changes to the gss_code or whole resolution; it doesn't describe the changes (yet).
1 2 3 4 5 6 7 8 9 10 |
resolution |
A character of gss resolutions, e.g. OA, LSOA. |
gss_codes |
A character vector of gss codes to limit the results to.
Overrides |
startdate |
A date, integer or string that can be read as a vintage. The first date of the period for which you want to extract any changes to the geography. The default, NULL, is interpreted as the earliest date available. A year (e.g. 2011) (string or integer) gives the 31st December of that year, which is the usual way of dating ONS geographic vintages. A month or date, formatted " end of the month if day is excluded). Also accepts Date objects. |
enddate |
As |
plot |
When NA no plot is drawn. When |
sankey_scale |
Either "linear" or "log". Whether to scale flows in output Sankey diagrams by their values or the logarithm of their values. (Note that nodes won't be proportional to total flows). |
include_changeorder |
Logical. If TRUE the output contains two
additional columns, |
return_list |
Logical. By default the function returns the wrangled
output from the query as an easy-to-use data frame. For debugging and
customisation set this to TRUE and instead return a list with four
elements: |
Used in particular for checking consistency with vintages: check for an empty result.
See also gss_reaggregate(?) for converting gss codes between vintages.
Data frame with XXXXXX, plot XXXXXXX
1 2 3 4 5 6 7 8 | ## Not run:
# Get and plot the change history for all OAs, LSOAs and MSOAs
x <- gss_timeline(c("OA", "LSOA", "MSOA"))
# Get and plot the change history for a single ward
x <- gss_timeline(gss_codes = "E05000021")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.