Also although scripting questions are allowed here, GDSE isn't a script writing service. Note that this isn't a great solution for all fonts however, best to stick with more simple sans-serif fonts. Import the new file2.svg (italic axis legend only) into file1. the font family to a Latin Modern font such as: LMRoman12-Regular LMRoman12-Bold LMRoman12-Italic LMRoman17-Regular. That's by far the simplest method to create faux-bold lettering. Modify file2.svg to keep only the italic axis legend and delete the other layers Here my chosen font has only italic style so I will go with it. What I have been able to do thanks to comment:ĭraw my plot with ggplot2 and export it as SVG (with the legend not in italic) in file1.svgĭraw my plot with gridSVG in file2.svg using grid.export("file2.svg") (with error bars not displayed properly but with italic axis legend) Inkscape Text to Path can understand as converting any text or letter of text into a. saving SVG directly with the plot interface in RStudio, and I have tried both ways described here, using whether ggsave or the Cairo package. and they are not! -) They just come back to plain font. The process for making a given selection of characters within a text object italic or oblique (ten points if you know the difference) is actually quite. So, as you see, I want the x axis labels to be kept in italic font when exported to SVG. Theme( = element_text(angle=90, vjust=0.8, size=14, colour="black",face="italic") Geom_errorbar(aes(ymin=mean-sd, ymax=mean+sd), width=.2,position=position_dodge(.9)) + Geom_bar(position=position_dodge(), stat="identity", colour='black') + the line-height or spacing between lines. Ggplot(df1, aes(x=as.factor(Gene), y=mean, fill=Species)) + the font style (bold, italic, condensed, regular etc.) the font size. # Gene count1 count2 count3 count4 Species mean sd library(ggplot2)ĭf