Displaying 20 results from an estimated 4000 matches similar to: "googleVis plot and knitr/sweave"
2017 Jun 12
0
Paths in knitr
Will there be anything wrong if you do not set these options?
Regards,
Yihui
--
https://yihui.name
On Mon, Jun 12, 2017 at 2:24 AM, <G.Maubach at weinwolf.de> wrote:
> Hi Yihui,
> Hi Duncan,
>
> I corrected my typo. Unfortunately knitr did not find my plots in the
> directory where they reside which is different from the Rmd document.
>
> The documentation of knitr
2017 Jun 12
2
Paths in knitr
Hi Yihui,
Hi Duncan,
I corrected my typo. Unfortunately knitr did not find my plots in the
directory where they reside which is different from the Rmd document.
The documentation of knitr says:
base.dir: (NULL) an absolute directory under which the plots are generate
root.dir: (NULL) the root directory when evaluating code chunks; if NULL,
the directory of the input document will be used
2013 Jul 17
1
SweaveParseOptions, quoted commas, and knitr vignettes
I haven't figured it out entirely, but it looks like there are a
couple of small glitches with knitr-based vignettes and
SweaveParseOptions.
I posted the tarball of a package with a knitr vignette with (as far
as I can tell) everything properly coded in the DESCRIPTION file
(VignetteBuilder: knitr, Suggests: knitr) and the vignette itself
(%\VignetteEngine{knitr::knitr}). When Windows
2013 Jan 28
1
Setting inline hook to a function identical to default in knitr turns of exponential formatting
Hello List,
while dealing with a questin of 'xiaodao' (
http://r.789695.n4.nabble.com/Problem-with-large-small-numbers-in-knitr-tp4653986.html)
I noticed that copying the default inline hook function obtained by
knit_hooks$get("inline")
into a knit_hook$set(inline = <...>) call turns off exponential
fomatting in the resulting .tex file.
I used a stripped version of
2017 Jun 08
3
Paths in knitr
Hi All,
I have to compile a report for the management and decided to use RMarkdown
and knitr. I compiled all needed plots (using separate R scripts) before
compiling the report, thus all plots reside in my graphics directory. The
RMarkdown report needs to access these files. I have defined
```{r setup, include = FALSE}
knitr::opts_knit$set(
echo = FALSE,
xtable.type = "html",
2012 Dec 26
2
Problem with large/small numbers in knitr
I have problems with very large numbers using knitr. In the following, my a
and b are extremely small and ssrr and ssru are extremely large. Knitr
delivers error messages. Scaling ssrr and ssru by 1000 resolved the problem:
ssrr <-ssrr/1000 ; ssru<-ssru/1000
Any clue as to how I might resolve the problem?
BTW, the same program does run in another computer. I am wondering whether
my
2012 May 25
1
knitr customization
I am trying to transition from Sweave to knitr, but there are a few
things about customization of the appearence of R input and output that
I did not get yet. Maybe somebody on the list can help me.
In my Sweave presentations I used a slanted font for the R input and a
normal font for the output, both in a small font. I also indented
everything by an extra 2em. All this was achieved by the
2013 Jan 08
2
how to label two figures in the same chunk independently with knitr
Dear R helpers,
I am using knitr to run analysis with R and edit my document with Latex. I
am wondering whether there is a way to include 2 or more pictures per chunk
and being able to refer them in the text independently and eventually
whether it is possible to give them different captions. Let me give you an
example.Rnw:
\documentclass{article}
\title{Example}
\author{FS}
\begin{document}
2014 Mar 13
4
Manuales de knitr
Hola a todos, ¿conocéis algún manual de knitr, además de los que aparecen
en la página oficial (http://yihui.name/knitr/)?
Es que en ciertas ocasiones, me gustaría conocer más sobre knitr y la
página web se queda corta. También existe un libro sobre knitr (aparece en
la página web), ¿alguien lo tiene y me podría decir si es recomendable su
compra?
Un saludo y muchas gracias.
--
Víctor Nalda
2013 Aug 23
2
packages with Sweave and knitr vignettes?
Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems
to imply that
it is possible to include both Sweave and knitr vignettes in a single
package.
I'm wondering
if anyone has tried this and/or if there are some hidden gotchas putting
this into practice,
and concerned about creating problems with CRAN checks if I try this.
Consider two vignettes:
pkg/vignettes/vign1.Rnw,
2013 Jun 19
2
knitr without R studio
Hello folks,
I`m using knitr on R studio, which make it easy to use, but a coworker of
mine would like to run it on "simple" R. So I was wondering if you know what
is the equivalent of the button "knit HTML" in RStudio in R. I tried
knit2HTML(
<html>
<head>
<title></title>
</head>
<body style="background-color:white">
2016 Jun 02
3
Ayuda con R Sweave
Gracias por las respuestas
La verdad es qeu estoy trabjando con Rstudio + Knitr, lo unico que en R studio le doy a crear nuevo Sweave, pero is me carga la libreria knitr.
Solucioné el problema que os comenté, era por un fallo tonto, a la hora de poner datos$A, puse dats$A, es decir, le faltaba la o....
Ahora una duda que no se como resolver es la de los gráficos. No consigo reducir su tamaño...
2012 Aug 30
1
knitr
Hello,
after trying to convert to pdf using knitr, I get the following error
messages from the error log:
C:/Users/duve/Documents/plots2.tex:5: LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X
2011 Oct 31
1
googleVis motionchart - slow with Date class
Hi,
I am trying to create a googleVis motion chart with monthly data. When formatting the date column as a Date class variable, the plot as presented in the browser becomes considerably slower and very prone to crashing the browser. To illustrate this issue I have modified the WorldBank demo.
### objects from demo("WorldBank", package = "googleVis")
M <-
2011 Jun 07
1
error with geomap in googleVis
Hi All,
I am unable to get the plot geomap in googleVis package. data is as follows
> head(index.ret)
country ytd
1 Argentina -10.18
2 Australia -3.42
3 Austria -2.70
4 Belgium 1.94
5 Brazil -7.16
6 Canada 0.56
> map1 = gvisGeoMap(index.ret,locationvar = 'country', numvar = 'ytd')
> plot(map1)
But it just displays a blank page, showing an
2012 Aug 02
2
ggplot does not show in knitr
Hello,
I'm having some issues getting a ggplot figure to show up in the knitr
output, when placed in a loop.
Specifically, I have a loop inside a knitr chunk :
```{r fitting, warning=FALSE, fig.width=10, fig.height=10, fig.keep='high'}
for (t in 1:T)
{
# do a regression of tgt.vals ~ predictors and compute coeffs and
fitted values (fit.vals / fit.adj.vals)
plot(
2012 Mar 28
2
Making Knitr work
Might not be the best place to ask, but i could get lucky..
I have setup an eclipse environment to write sweave files lately and wanted to switch to knitr. I could get it to work on easy files, but my earlier written sweave file fails to be knit properly.
Here is the error message:
Quitting from lines 273-276: Error in setwd(base.dir) : kann Arbeitsverzeichnis nicht wechseln (it says: cannot
2012 Mar 07
3
sobre googlevis
Buenas.
Esta mañana estoy trasteando un poco con googlevis, sobre todo para ver
si introducimos algunos gráficos chulos en la página web de la empresa (
hacemos estudios sociológicos).
Y estaba viendo esta página
http://neurochem.sisbio.recerca.upc.edu/?p=276 y no encuentro la forma
de reproducir el gráfico de las puntuaciones factoriales . Usando
gvisScatterChart puedo dibujar los puntos
2016 Aug 30
2
Problemas para delimitar chunks con la fucnción spin en el paquete knitr
Muchas gracias Carlos.
Tengo las mismas versiones pero no logro separar los chunks cuando uso #+,
pero si lo logro cuando uso #". Mi script es spin("prueba.R", knit =
FALSE) y si me hace un Rmd.
#+
a = c(1,2,3)
#+
mean(a)
Ejecuto,
> spin("prueba.R", knit = FALSE)
y obtengo un prueba.Rmd
```{r }
a = c(1,2,3)
```{r }
mean(a)
```
Pero si escribo:
#'
a =
2016 Aug 29
2
Problemas para delimitar chunks con la fucnción spin en el paquete knitr
Muchas gracias Carlos.
Tengo la versión de knitr 1.14
Corrí el ejemplo que me dices y resulta en lo mismo, no se crean chunks
diferentes. Parece que para separar chunks se debe incluir #'
Por ejemplo, estas 2 líneas de códigos del ejemplo:
#+ test-chisq5
sum(x^2) # chi-square distribution with df 5
#+ test-chisq4
sum((x - mean(x))^2) # df is 4 now
Dan como resultado en el Rmd (todo queda