Jump to content
You must now use your email address to sign in [click for more info] ×

bgarchow

Members
  • Posts

    3
  • Joined

  • Last visited

  1. Thanks @v_kyr! That indeed was the problem. When I edit the style defs to like what you suggested the plots display correctly in AD. It's unlikely that I will be able to convince the ggplot package maintainers to change the SVG writer code, but editing the style defs is certainly much less painful than selecting and changing each line element in AD.
  2. This is the header for one of my R generated SVG files: <?xml version='1.0' encoding='UTF-8' ?> <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 216.00 270.00'> <defs> <style type='text/css'><![CDATA[ line, polyline, path, rect, circle { fill: none; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10.00; } ]]></style> </defs>
  3. I produce many SVG graphics in R, mostly fairly simple scatter and line plots. I generate them using the ggplot2 package and save them in the SVG format with the ggsave function. The graphics display correctly in the Mac Finder's preview pane and in a web browser, but when opened in Designer, all line elements (plot axes, tick marks, bar and point borders, etc.) have their stroke set to 'None'. Text renders correctly but I have to select each line element in the Layers pane and set the stroke to the correct value. This of course is tedious and time consuming. Any ideas as to why this is happening?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.