[R] Help using Sweave with wireframe or cloud
Kevin E. Thorpe
kevin.thorpe at utoronto.ca
Thu Feb 22 19:22:42 CET 2007
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
More information about the R-help
mailing list