SlideShare a Scribd company logo
Ggplot2 Installation Instructions for R
This method usually works best.
Via RStudio (Regardless or Operating System):

• install.packages(“ggplot2”)
• library(“ggplot2”)
If the above method has not worked try installing from GitHub as an alternative. Type the command below
directly in RStudio.
Via Github:

devtools::install_github("tidyverse/ggplot2")

If the methods above did not work you can install via CRAN. When it comes to CRAN there are
different instructions based on the operating system that you use.

Via CRAN:

Ubuntu:
Type the following commands in the terminal:
sudo apt-get update -y

sudo apt-get install -y r-cran-ggplot2

Mac:
Type the following command in the terminal:

1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el-
capitan/contrib/3.6/ggplot2_3.2.1.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el-
capitan/contrib/3.5/ggplot2_3.2.1.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

Windows:
Type the following command in the terminal:
1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
4.0/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)

2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
r-devel-gcc8/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

3) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
3.6/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)

4) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
3.5/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)

More Related Content

What's hot (20)

PDF
Open Source Swift: Up and Running
Carl Brown
 
PPTX
Adapter Pattern (with Wreck It Ralph)
Rajeev Naik
 
PDF
Reversing for beginners 2
camsec
 
PDF
Webinar - Automated Puppet Code Deployment with R10K
OlinData
 
PDF
Building a scalable learning platform - Erik Veld - Codemotion Amsterdam 2018
Codemotion
 
PPTX
Swagman - Converting Postman Collection to Swagger Build
Ajinkya Dubey
 
PDF
Puppet Camp Atlanta 2014: r10k Puppet Workflow
Puppet
 
PDF
Killer R10K Workflow - PuppetConf 2014
Puppet
 
PDF
Frida Android run time hooking - Bhargav Gajera & Vitthal Shinde
NSConclave
 
ODP
Jenkins and rails app - Le Dinh Vu
Framgia Vietnam
 
PDF
MongoDB World 2019 Builder's Fest - Open source command line power tools for ...
Stennie Steneker
 
PDF
aautoPilot
AbhishekBirdawade
 
PPTX
Should you react?
Axilis
 
ODP
Continuous Delivery of Puppet Manifests
Kris Buytaert
 
PPTX
파이썬설치
jaypi Ko
 
PDF
Andro sec rl-prototype-finalproject
LiadBercovich
 
PDF
Percona XtraDB Cluster before every release: Glimpse into CI testing
Raghavendra Prabhu
 
PPTX
GoSF Jan 2016 - Go Write a Plugin for Snap!
Matthew Broberg
 
PDF
Building a raku module
Simon Proctor
 
PDF
Firmware Extraction & Fuzzing - Jatan Raval
NSConclave
 
Open Source Swift: Up and Running
Carl Brown
 
Adapter Pattern (with Wreck It Ralph)
Rajeev Naik
 
Reversing for beginners 2
camsec
 
Webinar - Automated Puppet Code Deployment with R10K
OlinData
 
Building a scalable learning platform - Erik Veld - Codemotion Amsterdam 2018
Codemotion
 
Swagman - Converting Postman Collection to Swagger Build
Ajinkya Dubey
 
Puppet Camp Atlanta 2014: r10k Puppet Workflow
Puppet
 
Killer R10K Workflow - PuppetConf 2014
Puppet
 
Frida Android run time hooking - Bhargav Gajera & Vitthal Shinde
NSConclave
 
Jenkins and rails app - Le Dinh Vu
Framgia Vietnam
 
MongoDB World 2019 Builder's Fest - Open source command line power tools for ...
Stennie Steneker
 
aautoPilot
AbhishekBirdawade
 
Should you react?
Axilis
 
Continuous Delivery of Puppet Manifests
Kris Buytaert
 
파이썬설치
jaypi Ko
 
Andro sec rl-prototype-finalproject
LiadBercovich
 
Percona XtraDB Cluster before every release: Glimpse into CI testing
Raghavendra Prabhu
 
GoSF Jan 2016 - Go Write a Plugin for Snap!
Matthew Broberg
 
Building a raku module
Simon Proctor
 
Firmware Extraction & Fuzzing - Jatan Raval
NSConclave
 

More from Vinita Silaparasetty (12)

PDF
R Upgrade Instructions
Vinita Silaparasetty
 
PDF
Installation instructions for R
Vinita Silaparasetty
 
PDF
GPS Handbag
Vinita Silaparasetty
 
PDF
Motion Sensing Couture
Vinita Silaparasetty
 
PPTX
What is Jupyter Notebook?
Vinita Silaparasetty
 
PDF
How to Install Python on Linux
Vinita Silaparasetty
 
PDF
How to Install Python on Mac
Vinita Silaparasetty
 
PDF
How to Install Python on Windows
Vinita Silaparasetty
 
PDF
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Windows
Vinita Silaparasetty
 
PDF
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
Vinita Silaparasetty
 
PDF
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
Vinita Silaparasetty
 
R Upgrade Instructions
Vinita Silaparasetty
 
Installation instructions for R
Vinita Silaparasetty
 
Motion Sensing Couture
Vinita Silaparasetty
 
What is Jupyter Notebook?
Vinita Silaparasetty
 
How to Install Python on Linux
Vinita Silaparasetty
 
How to Install Python on Mac
Vinita Silaparasetty
 
How to Install Python on Windows
Vinita Silaparasetty
 
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Windows
Vinita Silaparasetty
 
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
Vinita Silaparasetty
 
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
Vinita Silaparasetty
 
Ad

Recently uploaded (20)

PDF
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
PPTX
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
PDF
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
PDF
apidays Singapore 2025 - The API Playbook for AI by Shin Wee Chuang (PAND AI)
apidays
 
PDF
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
PDF
Data Retrieval and Preparation Business Analytics.pdf
kayserrakib80
 
PDF
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
PDF
Context Engineering for AI Agents, approaches, memories.pdf
Tamanna
 
PDF
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
PPTX
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
PPTX
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
PPTX
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
PPTX
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
PDF
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
PDF
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
PDF
Simplifying Document Processing with Docling for AI Applications.pdf
Tamanna
 
PPTX
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
PPTX
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
PDF
Driving Employee Engagement in a Hybrid World.pdf
Mia scott
 
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
apidays Singapore 2025 - The API Playbook for AI by Shin Wee Chuang (PAND AI)
apidays
 
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
Data Retrieval and Preparation Business Analytics.pdf
kayserrakib80
 
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
Context Engineering for AI Agents, approaches, memories.pdf
Tamanna
 
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
Exploring Multilingual Embeddings for Italian Semantic Search: A Pretrained a...
Sease
 
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
Simplifying Document Processing with Docling for AI Applications.pdf
Tamanna
 
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
Driving Employee Engagement in a Hybrid World.pdf
Mia scott
 
Ad

Ggplot2 Installation Instructions

  • 1. Ggplot2 Installation Instructions for R This method usually works best. Via RStudio (Regardless or Operating System): • install.packages(“ggplot2”) • library(“ggplot2”) If the above method has not worked try installing from GitHub as an alternative. Type the command below directly in RStudio. Via Github: devtools::install_github("tidyverse/ggplot2") If the methods above did not work you can install via CRAN. When it comes to CRAN there are different instructions based on the operating system that you use. Via CRAN: Ubuntu: Type the following commands in the terminal: sudo apt-get update -y sudo apt-get install -y r-cran-ggplot2 Mac: Type the following command in the terminal: 1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el- capitan/contrib/3.6/ggplot2_3.2.1.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el- capitan/contrib/3.5/ggplot2_3.2.1.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) Windows: Type the following command in the terminal:
  • 2. 1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 4.0/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ r-devel-gcc8/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 3) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 3.6/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 4) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 3.5/ggplot2_3.2.1.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE)