File: MathML.nw

package info (click to toggle)
r-cran-xml 3.98-1.5-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 9,464 kB
  • ctags: 636
  • sloc: xml: 79,579; ansic: 6,518; asm: 644; sh: 16; makefile: 1
file content (18 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@  One needs the functions from \file{mathmlPlot} in \dir{examples}.
<<*>>=
 inFile <- system.file("data/mathmlQuadratic.xml","XML")
 d <- xmlTreeParse(inFile)
 plot(1:10, type="n")
 text(5,5, mathmlPlot(d))


@ 
<<>>=
 u <- xmlTreeParse("data/mathmlRoot.xml")
 text(5,7,mathmlPlot(u))

@ 
<<>>=
 u <- xmlTreeParse("data/mathmlSet.xml")
 text(5,9,mathmlPlot(u))