search for: testfig

Displaying 4 results from an estimated 4 matches for "testfig".

Did you mean: testfit
2010 Apr 12
1
Sweave and multiple figures from an R source file
Hi, I am trying to get figures from multiple source files in Sweave. My test file is as follows \documentclass{article} \usepackage{Sweave} \begin{document} \begin{section}{notitle} This is a simple Sweave test <<gethypergraphs_rhea,fig=TRUE,echo=F>>= source("./testfig.r") @ \\ End of the simple sweave test \end{section} \end{document} where testfig.r is as simple as plot(1:20) plot(1:5) The figures are correctly generated in the folder, as a .pdf/.eps with two pages, each page a plot the resulting tex file is \documentclass{article} \usepackage{Sweave...
2010 Aug 10
1
Sweave with dev.new()
...o with the command 'dev.new()' in my code. Here is a basic example of a Sweave file which can hopefully illustrate the problem: \documentclass[a4paper]{article} \usepackage{Sweave} \RequirePackage{graphicx,fancyvrb} \title{Sweavetest} \begin{document} \section{Plotting} <<label=testfig,include=FALSE,echo=TRUE>>= dev.new(width=7,height=6,record=TRUE) plot(1:10,col="red") @ \begin{figure}[ht] \begin{center} <<label=fig,fig=TRUE,echo=FALSE>>= <<testfig>> @ \end{center} \caption{Testplot} \label{fig:test} \end{figure} \end{document} When I r...
2005 Apr 07
2
newline in lattice axis label
...a = fakedf, outer = TRUE, allow.multiple = TRUE, layout = c(1,3), ylab = list(expression(paste( "VarB (cm" ^2, "), VarC (cm),\n or VarD (cm)"))), xlab = list("VarA (d)")) postscript("testfig.eps") print(myplot) dev.off() } As you can see, this is not producing the desired result, which is probably associated with 3 warnings: Warning messages: 1: font metrics unknown for character 10 2: font metrics unknown for character 10 3: font metrics unknown for character 10 Any he...
2008 Jul 06
2
Issue with postscript figures using WinAnsi encoding
...he WinAnsi encoding on a windows machine. Here's some sample code: ########################################### postscript(file = "test.eps", encoding="WinAnsi.enc", width = 3, height = 5.5, onefile = TRUE, horizontal=FALSE, family = "sans", title = "testfig", fonts = "sans") plot(1:5, 1:5, ylab = " \211") dev.off() ############################################# If I then try to open the above file in GSview, it doesn't work and I get all sorts of errors. I initially thought this might be an issue with ghostscript, but...