Learn R Programming

kml3d (version 0.6)

makeLatexFile: ~ Function: makeLatexFile ~

Description

Create a LaTeX document that inclusde 3D objects into PDF documents.

Usage

makeLatexFile(filename = "main.tex", asyToInclude = "scene+0.prc")

Arguments

filename
Name of the LaTeX file
asyToInclude
Name of the file holding the 3D graph to include.

Value

  • A LaTeX file, in the current directory.

Author(s)

Christophe Genolini INSERM U669 / PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health Modal'X / Universite Paris Ouest-Nanterre- La Defense Contact author : genolini@u-paris10.fr

Details

Create a LaTeX document that inclusde 3D objects into PDF documents with PDF-1.5/1.6 compatibility.

References

Article "KmL: K-means for Longitudinal Data", in Computational Statistics, Volume 25, Issue 2 (2010), Page 317. Web site: http://christophe.genolini.free.fr/kml

See Also

makeTriangles

Examples

Run this code
### Generating the data
  myCld <- gald(c(5,5,5))
  kml(myCld,3:4,1)

  ### Creation of the scene
  scene <- plot3dPdf(myCld)
  drawScene.rgl(scene)

  ### Export in '.asy' file
  saveTrianglesAsASY(scene)

  ### Creation of a '.prc' file
  # Open a console window, then run
  # asy -inlineimage -tex pdflatex scene.azy

  ### Creation of the LaTeX main document
  makeLatexFile()

  ### Creation of the '.pdf'
  # Open a console window, then run
  # pdfLatex main.tex

Run the code above in your browser using DataLab