saveTrianglesAsASY: ~ Function: saveTrianglesAsASY ~

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Export a Triangle object to an '.asy' file.

Usage

1
saveTrianglesAsASY(scene, filename = "scene.asy")

Arguments

scene

[Triangle]: Object representing the graph to plot, probably produce by plot3dPdf.

filename

[character]: Name of exported file.

Details

Export a Triangle object to an '.asy' file. See plot3dPdf for a summary of the overall procedure.

Value

An '.asy' file, in the current directory.

Author(s)

Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa

References

http://www.stat.uiowa.edu/~luke/R/misc3d/misc3d-pdf/

See Also

plot3dPdf,makeLatexFile,makeTriangles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  ### Generating the data
  data(artificialJointLongData)
  myLd <- longData3d(artificialJointLongData,timeInData=list(var1=2:12,var2=13:23))
  part <- partition(rep(1:3,each=50))
  plotTrajMeans3d(myLd,part)

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

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

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

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

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

longitudinalData documentation built on May 2, 2019, 8:53 a.m.