Plot the internal network metrics for a HR variable as a scatter plot, showing Internal Network Breadth as the vertical axis and Internal Network Size as the horizontal axis.

internal_network_plot(
  data,
  hrvar = "Organization",
  mingroup = 5,
  return = "plot",
  bubble_size = c(1, 8)
)

Arguments

data

A Standard Person Query dataset in the form of a data frame.

hrvar

HR Variable by which to split metrics, defaults to "Organization" but accepts any character vector, e.g. "LevelDesignation"

mingroup

Numeric value setting the privacy threshold / minimum group size. Defaults to 5.

return

String specifying what to return. This must be one of the following strings: - "plot" - "table"

bubble_size

A numeric vector of length two to specify the size range of the bubbles

Value

'ggplot' object showing a bubble plot with internal network size as the x-axis and internal network breadth as the y-axis. The size of the bubbles represent the number of unique employees in each group.

Details

Uses the metrics Internal_network_size and Networking_outside_organization.

Examples

# \donttest{
# Return plot
internal_network_plot(sq_data, return = "plot")


# Return summary table
internal_network_plot(sq_data, return = "table")
#> # A tibble: 5 × 4
#>   Organization       `Internal Network Size` `Internal Network Breadth`     n
#>   <chr>                                <dbl>                      <dbl> <int>
#> 1 Customer Service                      40.0                       3.53    61
#> 2 Finance                               37.7                       3.29   292
#> 3 Financial Planning                    37.1                       3.34    75
#> 4 Human Resources                       72.5                       6.76    71
#> 5 IT                                    67.4                       6.21   130
# }