BrailleR (version 0.29.1)

AddXMLMethod: Create XML files to sit alongside SVG files in order to make an accessible graph experience.

Description

Creates the necessary XML file for a graph object (as long as it has a class assigned) or the current graph window.

Usage

AddXML(x, file)

Arguments

x

a graph object for which a method exists, or the current graphics device if set to NULL.

file

The XML file to be created.

Value

NULL. This function is solely for the purpose of creating XML files in the current working directory or in a path of the user's choosing.

Details

This is experimental work. At present, the proof of concept is based on a fairly standard histogram from the graphics package.

References

P. Dengler et al. (2011) Scalable vector graphics (SVG) 1.1, second edition. W3C recommendation, W3C. http://www.w3.org/TR/2011/REC-XML11-20110816/

Examples

Run this code
# NOT RUN {
x=rnorm(1000)
#AddXML(hist(x))
# }

Run the code above in your browser using DataCamp Workspace