Continue PR #1865

This PR continues the work of @jonathan-taylor in #1865 (tracked in #2453).
It adds SVG and X11 plotting support to the rmagic extension (SVG uses R's Cairo library).