Welcome to Code Sharer, a code gallery for creating, saving and sharing all kinds of code snippets.

R — Save a graph as a pdf

Posted On: Wednesday, December 14, 2016 at 7:46 AM

Insert you functions/datasets for X and Y after X<- and Y<- respectively 
# Creating a Graph
X<-
Y<-
plot(X, Y)
title("plot of X vs Y")
# Saving a Graph
pdf("mygraph.pdf")

Ryan Bradley-Evans (Admin)

Joined on
Contributed 22 Snips

Get Social and Share

Tags