I am trying to use dev.copy2eps()
function to save my outputted charts. However, when I change the plot width and height in the function, all the strings (including labels and legend) do not appear.
Example of an outputted plot (with non-default sizes):
Code:
boxplot(volunteers$number_of_commits, employees$number_of_commits, las = 1, outline = FALSE, cex.lab=1.2, horizontal = TRUE, margin = list(l = 10, r = 10, b = 0, t = 0), col=(c("#b8d1ed", "#aae0c0")), main = "Number of Commits")
legend("bottomright", legend=c("Employees", "Volunteers"), fill=c("#aae0c0", "#b8d1ed"), inset= .02, cex=1.1)
dev.copy2eps(file="Images/atom/atom_num_commits.eps", width = 650, height = 360)
The question is: How can I save my chart in different sizes using the postscript function, maintaining the same quality and information?