Change SVG method for r