Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
graphics [2018/10/26 11:39]
qcbs [Exercise 5 - Editing R figures in Inkscape with svglite package.]
graphics [2018/10/26 11:39]
qcbs [Exercize 5 - Using the svglite package.]
Line 105: Line 105:
   - If you are curious, your can open this SVG file in Notepad or TextEdit to check the structure of the SVG/XML file. You could modify the file in text form if you wanted. ​   - If you are curious, your can open this SVG file in Notepad or TextEdit to check the structure of the SVG/XML file. You could modify the file in text form if you wanted. ​
   - Note that the text created with svglite has a fixed width (textLength is specified in the xml text tag. So, if you increase the size of the font, it will become higher but not wider. To fix this problem, open the XML Editor (Edit>​XML Editor) and clear the textLength section for text objects. You could also make this change by editing the SVG in a text editor. ​   - Note that the text created with svglite has a fixed width (textLength is specified in the xml text tag. So, if you increase the size of the font, it will become higher but not wider. To fix this problem, open the XML Editor (Edit>​XML Editor) and clear the textLength section for text objects. You could also make this change by editing the SVG in a text editor. ​
-  - Note that you could also save your file in pdf format and open it in Inkscape as a PDF. It will still be a vector file, but it may be easier to use in some cases than the SVG format. ​ +  - Note that you could also save your file in pdf format and open it in Inkscape as a PDF. It will still be a vector file, but it may be easier to use in some cases than the SVG format. <file rsplus>
-<file rsplus>+
 pdf("​fig1.pdf"​) pdf("​fig1.pdf"​)
 pie(country_count$Freq,​labels=country_count$Var1) pie(country_count$Freq,​labels=country_count$Var1)