Displaying 1 result from an estimated 1 matches for "sincosx".
Did you mean:
sincos
2011 Feb 22
1
odfWeave graphics glitch
...;fig1, echo=TRUE,fig=TRUE,width=7,height=4>>=
x<-seq(1:100)/10
y<-sin(cos(x/pi))
imageDefs <- getImageDefs()
imageDefs$dispWidth <- 4.5
imageDefs$dispHeight<- 4.5
setImageDefs(imageDefs)
X11(type="cairo")
plot(x,y)
title(main="sin(cos(x/pi))")
savePlot("sincosx.png")
@
This is embedded in file example02in.odt, which has very little else.
In R I run
library(odfWeave)
infile<-"example02in.odt"
outfile<-"ex2.odt"
odfWeave(infile,outfile)
I get the png file created, but the ex2.odt is "corrupted" according to OpenO...