load_file: Generates ggplots by comparing among different user-defined...

Description Usage Arguments Value Author(s) Examples

View source: R/industry.R View source: R/comparison.R

Description

load_file() loads .csv file that contains u_egdata.base_job_tran_1step column fields. The function returns 2 ggplots:

  1. transit - Box plot for the time it takes to transit to various industries by user-defined groups

  2. $demo - Bar plot for the distribution of user-defined groups across various industries

Usage

1
load_file(file, group_by = NULL)

Arguments

file

Path to the input file

group_by

user-defined groups. By default, it will be gender.

Value

load_file() returns 2 ggplots objects transit and demo

Author(s)

Kai Wei Tan kaitan@linkedin.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#load library
library('comparison')

#calling load_file function
test <- load_file("./dummy_data.csv", group_by = 'age_bracket')

#Plot Box plot for the time it takes to transit to various industries by different age-bracket groups
test$transit

#Bar plot for the distribution of different age-bracket groups across various industries
test$demo

kitcatkai/comparision documentation built on Jan. 1, 2021, 7:20 a.m.