COMPLECS was developed to help make sense of complex systems. It reads data from a number of worksheets in a spreadsheet and generates a diagram according to those specifications. Originally, COMPLECS was developed to visualise a problem during the needs assessment phase of intervention development.
complecs( input, title = "COMPLECS overview", layout = "neato", graph_styling = list(c("outputorder", "nodesfirst", "graph"), c("overlap", "false", "graph"), c("fixedsize", "false", "node")), directed = TRUE, outputFile = NULL, outputWidth = NULL, outputHeight = NULL, returnSvgOnly = FALSE, maxLabelLength = 20, regExReplacements = list(c("\\\"", "`"), c("\\'", "`"), c("\\\\", "/")) ) # S3 method for complecs print( x, width = x$input$width, height = x$input$height, title = DiagrammeR::get_graph_name(x$output$graph), ... )
| input | Either a link to a Google Sheet, or a path to an Excel file. |
|---|---|
| title | The title of the COMPLECS graph. |
| layout | The layout to use; has to be one of the |
| graph_styling | Additional styling to apply; a list with three-element
vectors, where the three elements correspond to, respectively, the |
| outputFile | A character vector where each element is one path (including filename) to write the graph to. |
| outputWidth, outputHeight | If not |
| returnSvgOnly | Whether to only return the SVG in a character vector. |
| maxLabelLength | The number of characters where to wrap the labels. |
| regExReplacements | A list of pairs of regular expressions that will be applied to the specifications before generating the ABCD. This can be used to sanitize problematic characters (e.g. ', " and \). |
| x | The object to print (i.e. a result of a call to |
| width, height | If not |
| ... | Any additional arguments for the |
A complecs object that includes the graph and the graph in SVG in
output$graph and output$graphSvg.
COMPLECS is a recursive acronym for COMPLECS Organises Multiple Players & Linked Environments using Connected Specifications.
complecs(paste0("https://docs.google.com/spreadsheets/d/", "1WMO15xroy4a0RfpuZ8GhT-NfDoxwS34w9PrWp8rGjjk"));#> Warning: `as_data_frame()` is deprecated as of tibble 2.0.0. #> Please use `as_tibble()` instead. #> The signature and semantics have changed, see `?as_tibble`. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.#> #> #> col_character(), #> col_character(), #> col_character() #>#> #> #> col_character(), #> col_character(), #> col_character() #>#> #> #> col_character(), #> col_character(), #> col_character(), #> col_character(), #> col_character(), #> col_character(), #> col_character() #>#> #> #> col_character(), #> col_character(), #> col_character(), #> col_character(), #> col_character(), #> col_character() #>