# Return plot
create_dist(pq_data, metric = "Collaboration_hours", hrvar = "Organization")
# Return summary table
create_dist(pq_data, metric = "Collaboration_hours", hrvar = "Organization", return = "table")
# Use custom labels by providing a label vector
eh_labels <- c(
"Fewer than fifteen" = "< 15 hours",
"Between fifteen and twenty" = "15 - 20 hours",
"Between twenty and twenty-five" = "20 - 25 hours",
"More than twenty-five" = "25+ hours"
)
pq_data %>% create_dist(metric = "Meeting_hours", labels = eh_labels, return = "plot")
# Sort by a category
pq_data %>% create_dist(metric = "Collaboration_hours", sort_by = "25+ hours")
Run the code above in your browser using DataLab