Description Usage Arguments Value Author(s) Examples
View source: R/industry.R View source: R/comparison.R
load_file()
loads .csv file that contains u_egdata.base_job_tran_1step
column fields.
The function returns 2 ggplots:
transit
- Box plot for the time it takes to transit to various industries by user-defined groups
$demo
- Bar plot for the distribution of user-defined groups across various industries
1 |
file |
Path to the input file |
group_by |
user-defined groups. By default, it will be gender. |
load_file()
returns 2 ggplots objects transit
and demo
Kai Wei Tan kaitan@linkedin.com
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.