View source: R/links_secuTrial.R
links_secuTrial | R Documentation |
secuTrial creates a large number of files and identifiers with which to link files together. Understanding the links can be difficult. This function produces a map linking the forms with common variables.
links_secuTrial( object, forms = NULL, formcol = "#d8b365", varcol = "#e5f5f9", plot = TRUE )
object |
|
forms |
a regular expression for which forms should be included |
formcol |
color for form name circles |
varcol |
color for variable name circles |
plot |
boolean specifies if the plot should be shown |
We recommend to resize the tcltk window and and click view/"fit to screen" to improve readability. Forms are colored dull orange, variables are colored light blue.
a tcltk plot window.
Note that where a form name is also a variable name, it is appended by _form
(igraph requires uniquely named nodes).
# ex. 1 # prepare path to example export export_location <- system.file("extdata", "sT_exports", "BMD", "s_export_CSV-xls_BMD_short_en_utf8.zip", package = "secuTrialR") # load all export data sT_export <- read_secuTrial_raw(data_dir = export_location) # plot links links_secuTrial(sT_export) # ex. 2 # prepare path to example export export_location <- system.file("extdata", "sT_exports", "lnames", "s_export_CSV-xls_CTU05_long_ref_miss_en_utf8.zip", package = "secuTrialR") # load all export data sT_export <- read_secuTrial_raw(data_dir = export_location) # plot links for form names starting with "ctu05" links_secuTrial(sT_export, forms = "^ctu05")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.