{ "cells": [ { "cell_type": "markdown", "id": "2a51cb88-6706-4266-a2c0-794dad6ef810", "metadata": {}, "source": [ "# Customizing `geom_pie()` with `start` and `direction` Parameters\n", "Two new parameters have been added to the `geom_pie()` function:\n", "\n", "- `start`: specifies the starting angle of the first slice in degrees (0-360°)\n", "- `direction`: controls sector layout direction (1 for clockwise or -1 for counterclockwise)\n", "\n", "Previously, pie charts were limited by fixed positioning where the second slice always started at 0° and all slices were arranged clockwise. \n", "These new parameters provide precise control over slice positioning and orientation. " ] }, { "cell_type": "code", "execution_count": 1, "id": "83168fbc-3b0d-4899-998b-5339d4edc47f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "| \n", " | Country | \n", "GDP_2025_Trillion_USD | \n", "
|---|---|---|
| 0 | \n", "United States | \n", "30.34 | \n", "
| 1 | \n", "China | \n", "19.53 | \n", "
| 2 | \n", "Germany | \n", "4.92 | \n", "