Convenience function to run the orgviz shiny app within an R session.

orgviz(tg = NULL, df = NULL)

Arguments

tg

user supplied tbl_graph

df

user supplied a data frame in org_tall_df format ie summarised metrics for the units in the network as generated by calc_summary_df.

Value

runs a shiny app

Details

The orgviz shiny app permits interactive exploration of an organisational network, and the mapping of numeric data onto the organisation. By default a dataset is simulated, but a tidygraph object and a data frame in the org_tall_df format call be supplied to visualise custom data.

Examples

# NOT RUN {
# run with embedded data
orgviz()

# run with example data
orgviz(tg=orgsurveyr::tg_org, df=orgsurveyr::tg_org_summarised_df)

# }