search for: getimagedefs

Displaying 10 results from an estimated 10 matches for "getimagedefs".

Did you mean: setimagedefs
2007 Jun 25
1
eps in odfWeave
Dear Weavers, Does someone have an example of using 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=showOutput...
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.
2008 Apr 14
1
odfWeave: in multi-page plots only last page appears in document
...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] "png" $plotHeight [1] 480 $plotWidth [1] 480 $dispHeight [1] 5 $dispWidth [1] 5 $args list() Any help appreciated. Kind regards, Tobias
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...
2007 Jun 05
1
multiple plot in odfWeave
...cex=0.8, xpad=0.5, ypad=0.8, font=6) } @ Then in the R console: >library (odfWeave) >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...
2006 Sep 06
0
odfWeave Version 0.4.4
...er sets are handled 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 us...
2006 Sep 06
0
odfWeave Version 0.4.4
...er sets are handled 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 us...
2009 Feb 04
1
odfweave sample code error
...installed in my system. I used openoffice writer under windows to create the example1.odt 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.od...
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
...Windows vista (default language - Brazilian Portuguese), R 2.11.1, odfWeave 0.7.11, OpenOffice 3.0.1 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\Rt...