The EPS format in principle does not support semi-transparency - if you want semi-transparency and be able to edit in Illustrator or Inkscape you would better export to SVG or PDF. If you are really tied to the EPS format you could use the cairo
device though, and specify at what resolution semi-transparent objects need to be rasterized (only the non-semitransparent elements stay as vector format then though, semi-transparant areas are rasterized to bitmap). The syntax to do this is:
cairo_ps(file = "test.eps", onefile = FALSE, fallback_resolution = 600)
qplot(Sepal.Length, Petal.Length, data = iris, color = Species, size = Petal.Width, alpha = I(0.7))
dev.off()
or
ggsave("filename.eps", device=cairo_ps, fallback_resolution = 600)
An alternative option is to export to MS Office Powerpoint in vector format, and do any layout editing there. This can be done easily using my new export
package,
see
https://cran.r-project.org/web/packages/export/index.html and for demo
https://github.com/tomwenseleers/export
Typical syntax is very easy, e.g.:
install.packages("export")
library(export)
library(ggplot2)
qplot(Sepal.Length, Petal.Length, data = iris, color = Species,
size = Petal.Width, alpha = I(0.7))
graph2ppt(file="ggplot2_plot.pptx", width=6, height=5)
This results in a fully editable, high quality Powerpoint graph in native Office vector-based DrawingML format, with full support for transparency. In there you can easily fix minor formatting issues, and export to a high quality PDF by printing to PDF.
You can also use it to export to Word, Excel, Latex or HTML and you can also use it to export statistical output of various R stats objects.
It also has a graph2eps(file="plot.eps", width=6, height=5, fallback_resolution=600)
function to export to eps with rasterizing of semi-transparent areas...