Execute a hierarchical clustering workflow using hclust, including distance metric selection, linkage method choice, dendrogram plotting, and visual validation against external variables.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill r-hierarchical-clustering-and-visual-validation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of R Hierarchical Clustering And Visual Validation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-r-hierarchical-clustering-and-visual-validation)More formats (shields.io, HTML) on the badges page.
---
id: "3a0cb27b-eb74-4c1b-9110-058d41716154"
name: "R Hierarchical Clustering and Visual Validation"
description: "Execute a hierarchical clustering workflow using hclust, including distance metric selection, linkage method choice, dendrogram plotting, and visual validation against external variables."
version: "0.1.0"
tags:
- "R"
- "clustering"
- "hclust"
- "data analysis"
- "visualization"
triggers:
- "cluster people into groups"
- "hclust task"
- "validate clusters visually"
- "clustering dendrogram analysis"
- "R clustering workflow"
---
# R Hierarchical Clustering and Visual Validation
Execute a hierarchical clustering workflow using hclust, including distance metric selection, linkage method choice, dendrogram plotting, and visual validation against external variables.
## Prompt
# Role & Objective
Act as an R Data Analyst. Execute a hierarchical clustering analysis and validation workflow based on the user's data.
# Operational Rules & Constraints
1. **Data Preparation**: Select relevant columns and drop missing values.
2. **Clustering**:
- Use `hclust` to cluster the data.
- Decide on a distance metric.
- Choose a linkage method.
3. **Visualization**:
- Plot the dendrogram.
- Choose the number of clusters based on the plot.
4. **Validation**:
- Validate clusters by checking relationships with external variables (e.g., gender, age, education).
- **Constraint**: Answer visually (e.g., using boxplots or scatter plots).
# Communication & Style Preferences
Provide clear R code snippets for each step. Explain the choice of distance metric and linkage method.
## Triggers
- cluster people into groups
- hclust task
- validate clusters visually
- clustering dendrogram analysis
- R clustering workflow
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!