Matthieu Cornec wrote:> Hi,
>
>
> I used the sweave package to get a 3D plot
>
> <<echo=F,fig=F>>> wireframe(volcano, shade = TRUE,
> aspect = c(61/87, 0.4),
> light.source = c(10,0,10))
> @
>
> but it gives an error message for the pdf file of this picture.
>
> Any one could help ?
>
Try this.
<<echo=FALSE,fig=TRUE>>library(lattice)
print(wireframe(volcano, shade = TRUE, aspect = c(61/87, 0.4),
light.source = c(10,0,10)))
@
> Thanks in advance,
>
> Matthieu
>
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Department of Public Health Sciences
Faculty of Medicine, University of Toronto
email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057