Sometimes you want to be able to tweak a plot in R that was saved as a PDF or an EPS.
Use this to convert an eps into svg for editing in Inkscape:
pstoedit -f plot-svg input.eps output.svg
Then save the SVG in Inkscape as a “Plain SVG”, and use
convert input.svg output.pdf