Essential Viva Insights Scripts

This page provides some essential scripts to let you get started with analysis in Viva Insights. Using the R and Python scripts below, you can:

  • perform exploratory data analysis and identify key interesting hypotheses for your organization
  • run a range of custom visualizations on your Viva Insights data
  • create custom KPIs or segments using a combination of Viva Insights metrics and organizational / survey data

Utility Scripts

R Utilities

Essential functions and utilities for R-based analysis.

📁 Utility code for R

  • Purpose: Collection of utility functions for common Viva Insights analysis tasks
  • Language: R
  • Format: Multiple R files
  • Prerequisites: vivainsights R package

Python Utilities

Essential functions and utilities for Python-based analysis.

📁 Utility code for Python

  • Purpose: Collection of utility functions for common Viva Insights analysis tasks
  • Language: Python
  • Format: Multiple Python files
  • Prerequisites: vivainsights Python package

Visualization Scripts

Creating Essential Visualizations (R)

📄 create-example-visuals.R

  • Purpose: Generate standard Viva Insights visualizations
  • Language: R
  • Prerequisites: vivainsights R package, ggplot2
  • Key Functions: Bar charts, line plots, network diagrams
  • 📥 Download

Creating Essential Visualizations (Python)

📄 create-example-visuals.py

  • Purpose: Generate standard Viva Insights visualizations
  • Language: Python
  • Prerequisites: vivainsights Python package, matplotlib, seaborn
  • Key Functions: Bar charts, line plots, network diagrams
  • 📥 Download

Custom KPI Generation

Generate Custom KPIs from Viva Insights (R)

📄 generate-custom-kpi.md

  • Purpose: Tutorial for creating custom key performance indicators
  • Language: R
  • Format: Markdown tutorial with code examples
  • Prerequisites: vivainsights R package
  • 📥 Download Script

Getting Started Tutorials

Introduction to Viva Insights with Python

📁 Introduction to Viva Insights with Python

  • Purpose: Comprehensive introduction to Python-based Viva Insights analysis
  • Language: Python
  • Format: Jupyter Notebooks
  • Prerequisites: vivainsights Python package
  • Key Topics: Data loading, basic analysis, visualization

Included Notebooks:


Need Help?