Ensure "Install dependencies" is checked. This is crucial because ggplot2 relies on other small packages to function. Click . Method 3: Installing via Tidyverse

Check your internet connection. If you are behind a corporate firewall, you may need to configure your proxy settings in RStudio under Tools > Global Options > Packages. Your First Plot

RStudio: The Integrated Development Environment (IDE) that makes R easier to use. Method 1: The Console Command (Fastest)

ggplot2 is the gold standard for data visualisation in R. It uses a "Grammar of Graphics" to let you build complex plots layer by layer. If you are ready to move beyond basic charts, here is the complete guide on how to get ggplot2 running in your RStudio environment. Prerequisites

Before installing any packages, ensure you have the core software installed: R: The programming language itself.

Error Report