378 reputation
18
bio website math.mcmaster.ca/bolker
location Hamilton, Canada
age
visits member for 2 years, 2 months
seen 2 days ago

mostly an R user these days


Mar
9
comment Sweave boxplots — not the required output
@hgeop, perhaps post that as an answer. (You are encouraged to answer your own questions if you can.)
Mar
9
comment Sweave boxplots — not the required output
I can't reproduce this (R development version/3.1.0); simply adding \documentclass{article}; \begin{document} ; ... \end{document} to your MWE, I get final output with vertical x-axis labels as you wanted. (Have you tried clearing out any previously created plot files?)
Jan
5
comment Suppress library comments from ouput with knitr
I can't reproduce either. I would try cleaning out your cache directory ...
Dec
4
answered Is it possible to get Sweave/knitr in RStudio to output the .tex file without typesetting it?
Dec
4
comment Is it possible to get Sweave/knitr in RStudio to output the .tex file without typesetting it?
just use library(knitr); knit("file.Rnw") in the console.
Dec
1
comment knitr generated pdf cut border off from figure
try adding par(xpd=NA). Also, it's a little confusing that you spell "weight" as "weigth" (although you are consistent)
Oct
16
answered passing a variable from R to Tex in knitr
Sep
26
awarded  Yearling
Sep
25
comment Plots are not appearing in PDF after using Sweave
I made my comment into an answer so you can select it.
Sep
25
answered Plots are not appearing in PDF after using Sweave
Sep
25
comment Plots are not appearing in PDF after using Sweave
try adding fig=TRUE in the chunk options? (You might need an explicit print() around the p in the last line of the chunk too ...) If you use knitr::knit instead of Sweave, you won't need either of those explicit specifications ...
Aug
6
comment How can one make RStudio pass options to Sweave()?
You can customize markdown rendering rstudio.com/ide/docs/authoring/markdown_custom_rendering , but I don't know/don't think this is available for Sweave/PDF rendering. It might be worth opening an issue on the RStudio forums.
Apr
18
awarded  Commentator
Mar
14
awarded  Citizen Patrol
Feb
7
awarded  Custodian
Feb
7
reviewed Excellent How do I change the basic font into 'Corbel'?
Feb
7
reviewed Excellent Link enumerate item to subsection
Feb
7
reviewed Excellent How to indent the whole text and float environment?
Feb
7
comment How to put R code into a parameter of a newcommand?
Can you say more about what you're trying to accomplish? Sweave inserts its own LaTeX environment, so it's not surprising at all that just wrapping the results in \sf would fail. It will probably be easier to debug by working on the LaTeX file produced by Sweave ...
Dec
8
comment How use LaTeX counters to label knitr code chunks?
This might be hard, since the flow of information is one-way from R to LaTeX. That is, knitr gets run before LaTeX, and completely in ignorance of any LaTeX machinery ... you might be able to produce a chunk named something like "Solution\ref{setSeed}", but getting one named "Solution4.6" would be hard ... ? Apparently brew is more flexible, although I haven't used it