{"id":1648,"date":"2024-01-04T15:04:34","date_gmt":"2024-01-04T20:04:34","guid":{"rendered":"https:\/\/blog.uvm.edu\/tbplante\/?p=1648"},"modified":"2024-01-24T14:10:26","modified_gmt":"2024-01-24T19:10:26","slug":"merging-stata-and-r-svg-vector-figures-for-publication-using-inkscape-saving-as-svg-or-eps-files","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/tbplante\/2024\/01\/04\/merging-stata-and-r-svg-vector-figures-for-publication-using-inkscape-saving-as-svg-or-eps-files\/","title":{"rendered":"Merging Stata and R SVG vector figures for publication using Inkscape, saving as SVG or EPS files"},"content":{"rendered":"\n<p>I recently needed to make a figure for publication and the publisher didn&#8217;t like the resolution of the figure that I provided. One option is to increase the number of pixels of the rendered figure (eg increasing the width and height), the other is to create a figure using vectors that can be zoomed in as much as you want without losing quality so the journal can render the figure however they want. When you generate a PNG, JPEG, or TIFF figure, it renders\/rasterizes the figure using pixels. Vectors instead embed lines using mathematical formulas, so the rendering of the figure isn&#8217;t tied to a specific resolution, and zooming in and out will redraw the lines at the current resolution of the screen. The widely-adopted SVG vector format should be universally accepted as a figure format by publishers, but isn&#8217;t for some dumb reason. PDFs and PS\/EPS files can also handle vectors and are sometimes accepted by journals but require proprietary software (usually) to render. PS\/EPS files are also annoying in that they don&#8217;t embed non-standard characters correctly (e.g., beta, gamma, alpha, delta characters). <\/p>\n\n\n\n<p>Stata and R can easily output SVG files. The excellent and free <a href=\"https:\/\/inkscape.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Inkscape<\/a> app\/program can manipulate these to create merged SVG, PS, EPS, or PDFs that can then be provided to a journal. Inkscape is also nice because it will help you get around the problems with non-standard characters not rendering correctly in PS\/EPS files since you can export nonstandard characters from SVG files as paths in PS\/EPS files. I&#8217;m a GIMP proponent for most things but think Inkscape blows GIMP out of the water for manipulating vector images. <\/p>\n\n\n\n<p>Here&#8217;s how I manipulated SVG files to make an EPS file to submit to a journal. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: In Stata or R, export your figure as an SVG file<\/h2>\n\n\n\n<p>In Stata, after making your figure, you type &#8211;graph export &#8220;MYFILENAME.svg&#8221;, replace fontface(&#8220;YOUR PREFERRED FONT&#8221;) &#8212; For my figure, I needed to provide Times New Roman, so the fontface was &#8220;Times New Roman&#8221;. Note that you can&#8217;t specify a width for an SVG file. Type &#8211;help graph export&#8211; to view general export details and details specific for exporting SVG figures.<\/p>\n\n\n\n<p>In R, use the the <a href=\"https:\/\/svglite.r-lib.org\/\" data-type=\"link\" data-id=\"https:\/\/svglite.r-lib.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">svglite package that you can read about here<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Importing your SVGs in Inkscape<\/h2>\n\n\n\n<p><a href=\"https:\/\/inkscape.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download and install Inkscape<\/a> if you haven&#8217;t already. To begin, make a new document by clicking File &#8211;&gt; New. Change the dimensions under File &#8211;&gt; Document Properties. I&#8217;m arbitrarily selecting US Letter and changing the format from mm to in, so I have an 8.5&#215;11 in figure. I can change this later. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"710\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image.png\" alt=\"\" class=\"wp-image-1649\" style=\"width:428px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image.png 531w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-224x300.png 224w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/figure>\n\n\n\n<p>Now set the background as White, clicking the page button and then typing in 6 f letters in a row (ffffff) if it isn&#8217;t already like this. That&#8217;s the hexadecimal code for white in RGB. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"710\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-1.png\" alt=\"\" class=\"wp-image-1650\" style=\"width:439px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-1.png 528w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-1-223x300.png 223w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/figure>\n\n\n\n<p>Now import your figures under file &#8211;&gt; import. If you have an R figure, do that one first. After you select your figure, you&#8217;ll see this pop up. I set the rendered SVG DPI to 600 and left everything else as default. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"332\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-2.png\" alt=\"\" class=\"wp-image-1651\" style=\"width:538px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-2.png 695w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-2-300x143.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n\n\n\n<p>You&#8217;ll see that you&#8217;ve imported your figure, but it might be a bit bigger than your layer. That&#8217;s fine, just go back to file &#8211;&gt; document properties and select the &#8220;resize to content&#8221; button to fix this. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"606\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-3-1024x606.png\" alt=\"\" class=\"wp-image-1652\" style=\"width:688px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-3-1024x606.png 1024w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-3-300x178.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-3-768x455.png 768w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-3.png 1270w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You&#8217;ll notice that these R figures have black boxes where the main graphic should be. This is apparently a bug in how R outputs SVG files (I didn&#8217;t make these specific files so I&#8217;m not sure if it&#8217;s also a bug with the svglite package). It&#8217;s pretty simple to fix, and is <a href=\"https:\/\/inkscape.org\/forums\/questions\/importing-an-svg-file-gives-me-a-big-black-box\/\" target=\"_blank\" rel=\"noreferrer noopener\">detailed here<\/a>. It turns out that there&#8217;s a layer piece of the figure that R doesn&#8217;t specify should be transparent, so Inkspace renders it as black. if you have this problem, follow these steps: <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on your figure then ungroup with shift+ctrl+g (or object &#8211;&gt; ungroup). <\/li>\n\n\n\n<li>Now open layers window on the right (if you don&#8217;t see it, open it up with layer &#8211;&gt; layers and objects). <\/li>\n\n\n\n<li>With the &#8220;selector tool&#8221; (the mouse), click the black box and see which layer is selected. Expand that layer and find the &#8220;rect&#8221; in it. <\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"561\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-4-1024x561.png\" alt=\"\" class=\"wp-image-1654\" style=\"width:668px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-4-1024x561.png 1024w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-4-300x164.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-4-768x420.png 768w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-4.png 1403w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. If you hover over the &#8220;rect&#8221; object, you&#8217;ll see a little eye icon. This will hide the layer to prove that it&#8217;s the offending layer. You&#8217;ll be able to see the underlying object. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-5-1024x470.png\" alt=\"\" class=\"wp-image-1655\" style=\"width:682px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-5-1024x470.png 1024w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-5-300x138.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-5-768x353.png 768w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-5.png 1367w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5. Now click it again to unhide it. Then, make sure you have selected that rect layer in the layers window, and click the &#8220;no fill&#8221; option in the bottom left  of the screen (the white box with a red X). <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"654\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-7-1024x654.png\" alt=\"\" class=\"wp-image-1657\" style=\"width:624px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-7-1024x654.png 1024w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-7-300x192.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-7-768x490.png 768w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-7.png 1375w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>6. (Optional) Drag a box over your figure to select the entire figure and then regroup it (object &#8211;&gt; group or ctrl+g). <\/p>\n\n\n\n<p>Now you should be set. I had to repeat the fill color steps for the other box in this figure before regrouping BTW. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"545\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-6.png\" alt=\"\" class=\"wp-image-1656\" style=\"width:561px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-6.png 740w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-6-300x221.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/figure>\n\n\n\n<p>Now that I&#8217;ve fixed the R bug (hopefully this doesn&#8217;t happen to you), I&#8217;ve imported my Stata file. It comes in waaay smaller than the R one, which is fine. I&#8217;ve placed it below the other file and then (1) click on the new image so I see in\/outward facing arrows, then (2) hold down CTRL+shift and select and drag the corner arrow to expand it while preserving the ratio. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"420\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-8.png\" alt=\"\" class=\"wp-image-1658\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-8.png 415w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-8-296x300.png 296w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/figure>\n\n\n\n<p>I&#8217;ve imported another figure below that one. I&#8217;ve more-or-less eyeballed the layout and size of these layers, but I can fine-tune the size so they match each other. (1) click on the first figure you want to resize, then (2) click on the little deadbolt figure to lock the proportions &#8212; aka so width and height change at the same time, then (3) manually change the width to whatever you want. Then (4) repeat those steps for the other figure, and specify the same width as in step 3. Now you can move around the images so they are placed nicely. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"887\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-9.png\" alt=\"\" class=\"wp-image-1659\" style=\"width:617px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-9.png 838w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-9-283x300.png 283w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-9-768x813.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<p>Now you&#8217;ll want to expand the document layer so it&#8217;s the size of all of the added figures. To do that, (1) select all layers with ctrl-a or edit &#8211;&gt; select all, then (2) go to file &#8211;&gt; document properties, and (3) click on the &#8220;resize to content&#8221; button. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"930\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-10.png\" alt=\"\" class=\"wp-image-1660\" style=\"width:623px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-10.png 794w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-10-256x300.png 256w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-10-768x900.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/figure>\n\n\n\n<p>Now your layer should perfectly match the size of your figures. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Adding overlaying text<\/h2>\n\n\n\n<p>I want to add the letters &#8220;A&#8221; and &#8220;B&#8221; to this figure since it&#8217;s two separate panels. The text tool on the left (capital &#8220;A&#8221;) allows to add text. So, (1) click the text tool, then (2) choose your font, (3) choose the text size, here 120, (4) select the font color in the bottom left, here black, then (5) click where you want to add your text, and start typing. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"1012\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-11.png\" alt=\"\" class=\"wp-image-1661\" style=\"width:602px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-11.png 946w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-11-280x300.png 280w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-11-768x822.png 768w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p>You might not get the placement perfect the first time. If you need to move it around, click the selector tool\/mouse cursor icon on the top left to move the added text layer around. If you want to edit the text, select the text tool again and re-select your added text. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"631\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-12.png\" alt=\"\" class=\"wp-image-1662\" style=\"width:526px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-12.png 756w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-12-300x250.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/figure>\n\n\n\n<p>If your text is outside of the bounds of your document layer, you might want to &#8220;resize to content&#8221; button one more time (hit ctrl-a then go to file &#8211;&gt; document properties, and hit the &#8220;resize to content&#8221; button). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Saving and exporting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4a: Saving as SVG for future editing with Inkscape<\/h3>\n\n\n\n<p>Inkscape&#8217;s default file format is an SVG, so I recommend saving your file as an SVG to start. Do that with ctrl+s or file &#8211;&gt; save.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4b: Saving as EPS, which is the file you&#8217;ll want to send to the publisher<\/h3>\n\n\n\n<p>The semi-proprietary EPS format is typically accepted by publishers, so you&#8217;ll want to generate this one to send off to the journal. This is done under the file &#8211;&gt; &#8220;save as&#8230;&#8221; option (or shift+ctrl+s). In the dropdown, select &#8220;encapsulated post script (*.eps)&#8221;. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"263\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-14.png\" alt=\"\" class=\"wp-image-1664\" style=\"width:565px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-14.png 636w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-14-300x124.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<p>On this popup, I unchecked the button next to rasterize filter effects, I selected embed fonts. If you are using nonstandard characters (e.g., alpha, beta, gamma, delta), instead check the &#8220;convert text to paths&#8221; button. This will change the text so that it&#8217;s vectors drawn on the image and not actual font-based text. Set the resolution for rasterization to 600 DPI. Hopefully nothing is actually rasterized since avoiding rasterization was the point of this little exercise. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"314\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-26.png\" alt=\"\" class=\"wp-image-1710\" style=\"width:626px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-26.png 658w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-26-300x143.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/figure>\n\n\n\n<p>Note that you&#8217;ll now have 2 separate files, one SVG and one EPS (if you did both steps 4a and 4b), <strong><em>so for any additional edits, you&#8217;ll want to remember to overwrite your SVG and your EPS files<\/em><\/strong>. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4c (optional): <em>Export <\/em>as PDF so you can share the figure with coauthors<\/h3>\n\n\n\n<p>You might want to also save as a PDF since people are familiar with these. I don&#8217;t know that I would provide a PDF to a journal, probably just an EPS file. It&#8217;s nice to have PDFs to share with coauthors since they are such universally-accepted file formats. Instead of using the &#8220;save as&#8230;&#8221; option, I recommend using the file &#8211;&gt; export option (shift+ctrl+e) to export. This will pop up an export window on the bottom right. Set your directory, select file type as PDF, then click on the little settings icon.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"542\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-15.png\" alt=\"\" class=\"wp-image-1665\" style=\"width:594px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-15.png 904w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-15-300x180.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-15-768x460.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<p>On the settings pop-up, I selected &#8220;no&#8221; for rasterize filter effects. Embedding the fonts might be preferable to converting text to paths since it will retain compatibility with screen reading software. Set the DPI to 600. I also left the default for compensating for rounding. Whatever that means. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"482\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-20.png\" alt=\"\" class=\"wp-image-1676\" style=\"width:709px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-20.png 999w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-20-300x145.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-20-768x371.png 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/figure>\n\n\n\n<p>Then pop out of that window and click the big export button and you&#8217;re done!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"391\" src=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-17.png\" alt=\"\" class=\"wp-image-1667\" style=\"width:576px;height:auto\" srcset=\"https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-17.png 796w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-17-300x147.png 300w, https:\/\/blog.uvm.edu\/tbplante\/files\/2024\/01\/image-17-768x377.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I recently needed to make a figure for publication and the publisher didn&#8217;t like the resolution of the figure that I provided. One option is to increase the number of pixels of the rendered figure (eg increasing the width and height), the other is to create a figure using vectors that can be zoomed in &hellip; <a href=\"https:\/\/blog.uvm.edu\/tbplante\/2024\/01\/04\/merging-stata-and-r-svg-vector-figures-for-publication-using-inkscape-saving-as-svg-or-eps-files\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Merging Stata and R SVG vector figures for publication using Inkscape, saving as SVG or EPS files<\/span><\/a><\/p>\n","protected":false},"author":4473,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[703485,703483,703488,703486,686197,502556,703484,703487],"class_list":["post-1648","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-eps","tag-inkscape","tag-merging-figures","tag-publication-figures","tag-r","tag-stata","tag-svg","tag-vectors"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/posts\/1648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/users\/4473"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/comments?post=1648"}],"version-history":[{"count":7,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/posts\/1648\/revisions"}],"predecessor-version":[{"id":1711,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/posts\/1648\/revisions\/1711"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/media?parent=1648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/categories?post=1648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/tbplante\/wp-json\/wp\/v2\/tags?post=1648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}