Displaying 12 results from an estimated 12 matches for "setimagedef".
Did you mean:
setimagedefs
2007 Jun 25
1
eps in odfWeave
...g eps or any other vector graphics with
odfWeave? It tried the example below (and commented variants) with
simple.odt in the examples directory, and got an error.
Dieter
#---
library(odfWeave)
plotInfo <- getImageDefs()
plotInfo$type = "eps"
#plotInfo$device = "postscript"
setImageDefs(plotInfo)
odfWeave("simple.odt", "simpleOut.odt")
#-----
# Writing to file content_1.xml
# Processing code chunks ...
# 1 : term hide(label=loadLibs)
# 2 : term xml(label=showOutputList)
#Error in check(options) : invalid value for 'type' : eps
Version: 0.5.9...
2007 Jul 18
1
odfWeave - How to Insert eps rather than png
If you create plots and use odfWeave to create an odf text document, the
default for figures is png bitmap graphics. The only way I've found to
insert eps graphics is to first create the eps graphic using the
postscript driver and then use odfInsertPlot. I've tried to use
getImageDefs and setImageDefs but I get an empty plot. Could someone
show an example?
Rick B.
2011 Feb 22
1
odfWeave graphics glitch
Using R2.12.1 on Ubuntu 10.04.1 I've tried to run the following code chunk in odfWeave
<<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"
o...
2007 Jun 05
1
multiple plot in odfWeave
...Weave)
>inFile <- "/home/lamilhat/AQUAGENOME/PRESENTATION/RAPPORTS/test_2.odt"
>outFile <-
"/home/lamilhat/AQUAGENOME/PRESENTATION/RAPPORTS/test_2_out.odt"
>imageDefs <- getImageDefs()
>imageDefs$dispWidth <- 7
>imageDefs$dispHeight <- 6
>setImageDefs(imageDefs)
>odfWeave(inFile, outFile)
--
====================================================================
= Laurence Amilhat INRA Toulouse 31326 Castanet-Tolosan =
= Tel: 33 5 61 28 53 34 Email: laurence.amilhat at toulouse.inra.fr =
2006 Sep 06
0
odfWeave Version 0.4.4
...ed better. For example, Chinese
characters can be included in R code. See the file "testCases.odt" in
the examples directory for an example
- Image specifications, such as format and size, have been moved out
of odfWeaveControl. They are now controlled by the functions
getImageDefs and setImageDefs. This change allows the user to easily
modify the image properties in code chunks so that figures can have
different sizes or types throughout the document.
- When odfWeave is invoked, a check for a zip program is done and a
more meaningful error is reported. This should help users better
under...
2006 Sep 06
0
odfWeave Version 0.4.4
...ed better. For example, Chinese
characters can be included in R code. See the file "testCases.odt" in
the examples directory for an example
- Image specifications, such as format and size, have been moved out
of odfWeaveControl. They are now controlled by the functions
getImageDefs and setImageDefs. This change allows the user to easily
modify the image properties in code chunks so that figures can have
different sizes or types throughout the document.
- When odfWeave is invoked, a check for a zip program is done and a
more meaningful error is reported. This should help users better
under...
2008 Apr 14
1
odfWeave: in multi-page plots only last page appears in document
...oduced
with this toy example (to be used in an ODF file together with
odfWeave -- I'm using the newest version 0.7.3):
<<plot1, echo=FALSE, fig=TRUE>>=
for (i in 1:3) {
plot(1,1, main=paste('Plot',i))
}
@
I thought the solution (I hope there is one) might be found with
setImageDefs (e.g. by setting type and/or device to postscript and
working with the 'onefile' argument) , but I couldn't solve the
problem. So maybe this is not the right idea for a solution. In any
case, here is my current getImageDefs:
> getImageDefs()
$type
[1] "png"
$device
[1] &...
2009 Feb 04
1
odfweave sample code error
...file.
can anybody help me out to fix the bug.
the code executed is as follows:
library(odfWeave)
> inFile <- "c:/example1.odt"
> outFile <- "c:/out.odt"
> imageDefs <- getImageDefs()
> imageDefs$dispWidth <- 4.5
> imageDefs$dispHeight<- 4.5
> setImageDefs(imageDefs)
>
> odfWeave(inFile, outFile)
Copying c:/example1.odt
Setting wd to
C:\DOCUME~1\Srinivas\LOCALS~1\Temp\RtmpAgBGhm/odfWeave04172603473
Unzipping ODF file using unzip -o "example1.odt"
Error in odfWeave(inFile, outFile) : Error unzipping file
In addition: Warning me...
2013 Apr 11
3
odfWeave: Some questions about potential formatting options
Hello All,
Learning to use the odfWeave package. I really like the package. It has good documentation, makes some very nice looking tables, and seems to have lots of options for customizing output.
There are a few things I'd like to do that don't seem to be covered in the documentation though. So I'm not sure if they're possible or not.
Here's a list of some things I'd
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
...in my odt file ...
<<tabela2, echo = FALSE, results = xml>>=
odfTable(tabela2,useRowNames=T,name ='Tabela 2')
@
in R console ...
>library(odfWeave)
>imageDefs <- getImageDefs()
>imageDefs$type <- 'bmp'
>imageDefs$device <- 'bmp'
>setImageDefs(imageDefs)
>options(SweaveSyntax="SweaveSyntaxNoweb")
>odfWeave('teste.odt','figura1.odt')
Copying teste.odt
Setting wd to
C:\Users\PEDROE~1\AppData\Local\Temp\Rtmpfv32oJ/odfWeave0215405313
Unzipping ODF file using unzip -o "teste.odt"
Archive: tes...
2007 Dec 01
2
Sweave: Variables in code chunk headers
I would like to be able to do something like this:
<<echo=F,fig=T,width=mywidth>>=
...
@
with mywidth set in a previous code chunk. Is there a way to do this in
Sweave?
(Sorry for two questions in a row, I have been saving these up.)
--
Michael
2007 Dec 01
2
Sweave: Variables in code chunk headers
I would like to be able to do something like this:
<<echo=F,fig=T,width=mywidth>>=
...
@
with mywidth set in a previous code chunk. Is there a way to do this in
Sweave?
(Sorry for two questions in a row, I have been saving these up.)
--
Michael