Description Usage Arguments Value Examples
Postcode correlation ggplot
crime_file
: Gets crime data of year 2012 to 2017, filter it and generates ggplot between 2 postcode
1 | crime_file(crime_data, offence_description, postcodes)
|
crime_data |
A data.table object with the following columns: "date" (POSIXct), "suburb" (chr), "postcode" (chr), "offence_level_1" (chr), "offence_level_2" (chr), "offence_level_3" (chr), "offence_count" (num). |
offence_description |
A character string of "offence_level_1" |
postcodes |
A two-element character vector. Each element is an SA postcode. |
A ggplot object showing the correlation in offence count between the two input postcodes.
1 | crime_file(data1,"ACTS INTENDED TO CAUSE INJURY", c(5000, 5006))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.