rk.traminer: Sequence Analysis & Trajectory Mining for RKWard

rk.traminer brings the power of Sequence Analysis (Life-course trajectories) to the RKWard GUI. It provides a highly optimized, user-friendly interface for the gold-standard TraMineR package. By integrating ggseqplot and patchwork, it completely modernizes the visual output, allowing researchers in sociology, demography, and economics to easily construct state sequence objects and render stunning, publication-ready dashboards and complexity analysis.


✨ Features

1. Smart Sequence Definition & Dashboard

2. Sequence Clustering & Typologies

3. Extract Sequence Indicators

4. Transition Rates Matrix


πŸš€ What's New in Version 0.0.5

πŸš€ What's New in Version 0.0.4

🎨 Ultimate Aesthetic Control & UI Ergonomics

πŸš€ What's New in Version 0.0.3

🧠 Analytical Power & Data-Driven Costs

πŸš€ What's New in Version 0.0.2

🧬 Sequence Clustering & Typology Generation

πŸš€ What's New in Version 0.0.1 (Initial Release)


πŸ›‘οΈ Universal Features


πŸ“¦ Installation

This plugin is not yet on CRAN. To install it, use the remotes or devtools package in RKWard.

  1. Open RKWard.

  2. Run the following command in the R Console:

    # If you don't have remotes installed:
    # install.packages("remotes")
    
    local({
      require(remotes)
      install_github("AlfCano/rk.traminer", force = TRUE)
    })
    
  3. Restart RKWard to load the new menu entries.


πŸ’» Usage

Once installed, the tool is organized under the Plots menu:

Plots -> Sequence Analysis (TraMineR) -> Sequence Dashboard

  1. Select your dataframe.
  2. Define your chronological state variables (e.g., using starts_with()).
  3. Set your gap-handling rules.
  4. Check the plots you want to render and click Submit.

πŸ› οΈ Dependencies

This plugin relies on the following R packages:


Troubleshooting: Compilation errors or missing binary dependencies (Windows)

If you encounter errors mentioning "non-zero exit status", "namespace is already loaded", or prompts asking you to compile packages from source (which subsequently fail), this typically happens when the R version bundled with your RKWard Windows installer is slightly behind the current CRAN standard.

CRAN provides easy-to-install, pre-compiled binaries primarily for the latest R versions. To bypass the need for manual compilation and RTools:

  1. Update R: Download and install the latest stable version of R directly from CRAN.
  2. Link to RKWard: Open RKWard, go to the top menu bar and navigate to Settings -> Check Installation...
  3. Switch the Engine: Point RKWard to the newly installed R executable (e.g., C:\Program Files\R\R-4.x.x).

This standard "two-step" setup (updating R independently of RKWard) guarantees you always have access to the latest pre-compiled binaries, keeping your plugin installations smooth and error-free.


✍️ Author & License