Learn R Programming

longitudinalData (version 2.0)

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 PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health INSERM U669 / Maison de Solenn / Paris Contact author :

English translation

Rapha�l Ricaud Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory University of Paris 10 / Nanterre

Details

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

See Also

makeTriangles,plot3dPdf, saveTrianglesAsASY.

Examples

Run this code
### Generating the data
  myLd <- gald3d()
  part <- partition(rep(1:3,each=50))
  plot3d(myLd,part)

  ### Creation of the scene
  scene <- plot3dPdf(myLd,part)
  drawScene.rgl(scene)

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

  ### Creation of a '.prc' file
  # Open a console, 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