Description Usage Arguments Value Examples
Correlation Finder
Finds the correlation between the offence count in two suburbs
adelaide_Offence_level_3
The functions visualizes the correlation in offence count between the two input suburbs for a level 3 offence.
1 | adelaide_offence_level_3(crime_data, offence_description, suburbs)
|
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 type offence_level_3. |
suburbs |
A two-element character vector. Each element is the name (UPPERCASE) of an SA suburb. |
A ggplot object showing the correlation in offence count between the two input suburbs.
1 | adelaide_offence_level_3(crime_2012,"OFFENCES AGAINST PROPERTY", vec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.