adelaide_offence_level_3: Correlation Finder Finds the correlation between the offence...

Description Usage Arguments Value Examples

Description

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.

Usage

1
adelaide_offence_level_3(crime_data, offence_description, suburbs)

Arguments

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.

Value

A ggplot object showing the correlation in offence count between the two input suburbs.

Examples

1
adelaide_offence_level_3(crime_2012,"OFFENCES AGAINST PROPERTY", vec)

vivek3107/prfavpawar documentation built on May 29, 2019, 9:56 a.m.