kSvg: HTML - Source an SVG file

Description Usage Arguments

View source: R/html_extras.R

Description

Convenience function for cat-ing out HTML markup for an SVG image, using <embed>.

Usage

1
kSvg(file = NULL, width = 4, height = 4, class = NULL)

Arguments

file

path to the SVG file you want to embed

width

width (in pixels) of the SVG file (or, more accurately, canvas in which that file is displayed)

height

height (in pixels) of the SVG file (or, more accurately, canvas in which that file is displayed)

class

class passed to the <embed> tag


Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to kSvg in Kmisc...