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

PDF
Reshape2 Installation Instructions
PDF
Dplyr Installation Instructions
PDF
Node.js + influx + grafana
PPTX
Vagrant
PDF
Vagrant: The ability to create production environments from day 1 of development
PDF
OWASP Bangalore : OWTF demo : 13 Dec 2014
PDF
PDF
Swift 2.2 Design Patterns CocoaConf Austin 2016
Reshape2 Installation Instructions
Dplyr Installation Instructions
Node.js + influx + grafana
Vagrant
Vagrant: The ability to create production environments from day 1 of development
OWASP Bangalore : OWTF demo : 13 Dec 2014
Swift 2.2 Design Patterns CocoaConf Austin 2016

What's hot (20)

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

More from Vinita Silaparasetty (12)

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

Recently uploaded (20)

PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Introduction to Knowledge Engineering Part 1
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Introduction to machine learning and Linear Models
PDF
Business Analytics and business intelligence.pdf
PDF
Fluorescence-microscope_Botany_detailed content
PDF
Lecture1 pattern recognition............
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Computer network topology notes for revision
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
Supervised vs unsupervised machine learning algorithms
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
STUDY DESIGN details- Lt Col Maksud (21).pptx
Introduction to Knowledge Engineering Part 1
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
.pdf is not working space design for the following data for the following dat...
Introduction to machine learning and Linear Models
Business Analytics and business intelligence.pdf
Fluorescence-microscope_Botany_detailed content
Lecture1 pattern recognition............
Clinical guidelines as a resource for EBP(1).pdf
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Introduction-to-Cloud-ComputingFinal.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Computer network topology notes for revision
ISS -ESG Data flows What is ESG and HowHow
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Supervised vs unsupervised machine learning algorithms

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)