Hi,
Thanks for the quick response. Unfortunately, the PDF I am trying to write is not opened on my computer. Below, I have attached an example where I have used ggplot to plot two variables from the iris dataset. Then, when I go to create a new pdf, to store the plot in, I get the error message shown in bold. Note that this error still occurs whether I specify the directory, or use ggsave. Thanks, again!
p <- ggplot(data = iris, aes(x=Petal.Length, y=Petal.Width)) + geom_point()
p
pdf(file = "iris_plot.pdf")
Error in pdf(file = "iris_plot.pdf") : cannot open file 'iris_plot.pdf'