Have you ever opened a PDF of a graph made in R in Inkscape? For some reason, it appears that my graphs are made with characters from the Dingbats font, which I guess Inkscape doesn’t like, so when I open the file in Inkscape, it changes all of my nice circles to the letter q. That’s awesome. How do you fix that? Inkscape doesn’t let you batch change the text inside a textbox, as far as I can tell. So, here’s one way to fix it:
- Open the PDF file in Inkscape and save it as an SVG file. Yes, you’ve now got qs instead of os. It will be ok.
- Close the file.
- Open the SVG in a text editor (I like Notepad++).
- Do a Find & Replace, finding “q” and replacing with “o”. I recommend reviewing each instance it finds rather than using “replace all”, because one of those qs might be something else. Here’s the general kind of text you’re looking for: id=”tspan4049″>q</tspan></text> See that q? Change it to a o.
- Save the files and close.
- Open it up in Inkscape and see what you’ve got.
If anyone has a more elegant way to do this, let me know! I’m sure there’s a way to change the R output from the start so you don’t have this problem, but this solution was quicker than messing with R for now.