This is a set of functions for manipulating and simplifying causal maps.
Load example data:
devtools::install_github("stevepowell99/CausalMapFunctions")
library(CausalMapFunctions)
example2
Visualise it:
example2 %>% make_interactive_map
example_file
Visualise it:
example_file %>% pipe_zoom_factors %>% pipe_select_factors %>% pipe_bundle_links %>% pipe_scale_links %>% pipe_label_links %>% pipe_label_factors(add_field_name=F) %>% pipe_color_borders %>% make_print_map
```
These functions are used in the Causal Map App. This app is completely free to use for analysis; to create and code larger mapfiles you will need a subscription. Or you can use these functions to work completely independently from the Causal Map app.
There is more documentation of the functions in our Vignette, however this is out of date.
The documentation of the functions in this package is unfortunately incomplete.
If you are interested and want more information, get in touch by raising an issue at GitHub or writing to steve@causalmap.app.
There is extensive documentation of the app in our Guide.
You can get a good idea of how many of the functions work by trying out the filters in the dashboard at the Causal Map app.
When you click any of the views in the dashboard, the corresponding filter loads in the Advanced Editor on the left.
The text in the Advanced Editor is processed by the function parse_commands
. So for example the command scale links
above is interpreted converted into the function pipe_scale_links()
. All the functions in the editor are pipe_
functions which mean they are applied one after the other to the currently loaded mapfile.
There are many existing tools for analysing systems diagrams and also undirected graphs, we identified a need for a tool for analysing the kind of causal maps produced in evaluation research such as programme theories where:
pipe_trace_paths()
, alongside familiar node and graph metrics.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.