visualize_mobility
Create visualizations of social mobility transition matrices across education, occupation, or wealth dimensions. Choose from heatmap, Sankey, or Prais-Bar chart types with optional filters and groupings.
Instructions
Generate a visualization of mobility transition matrix.
Args: dimension: Mobility dimension — "education", "occupation", or "wealth" chart_type: Type of chart — "heatmap", "sankey", or "prais_bar" filter: Optional filter expression (e.g., "sexo == 1") by: Optional grouping variable
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "visualize_mobility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dimension | No | wealth | |
| chart_type | No | heatmap | |
| filter | No | ||
| by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |