Displaying 20 results from an estimated 4000 matches similar to: "ggplot does not show in knitr"
2012 Jul 11
2
Computing inverse cdf (quantile function) from a KDE
Hello,
I wanted to know if there is a simple way of getting the inverse cdf for a
KDE estimate of a density (using the ks or KernSmooth packages) in R ?
The method I'm using now is to perform a numerical integration of the pdf
to get the cdf and then doing a search for the desired probablity value,
which is highly inefficient and very slow.
Thanks,
-fj
[[alternative HTML version deleted]]
2012 Aug 31
1
Histogram to KDE
Hello,
I wanted to know if there was way to convert a histogram of a data-set to a
kernel density estimate directly in R ?
Specifically, I have a histogram [bins, counts] of samples {X1 ...
XN} of a quantized variable X where there is one bin for each level of X,
and I'ld like to directly get a kde estimate of the pdf of X from the
histogram. Therefore, there is no additional quantization of
2017 Jun 29
2
Cannot install knitr
Dear All,
I am trying to install the package
knitr
but getting the following error:
----------------------
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib64/R/library/stringi/libs/stringi.so':
libicui18n.so.56: cannot open shared object file: No such file or directory
Error : unable to load R code in package ?knitr?
ERROR: lazy loading
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 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,
2012 Nov 27
3
Problem installing knitr 0.5 or higher in Ubuntu
Hi,
I am using Rstudio in Ubuntu . While installing R from the terminal I got
the version R 2.13.1 .
But the problem is that knitr 0.5 requires higher versions.
So is there any way to get the latest version of R in ubuntu (or 2.13.1 is
the maximum I can get)?
In case the higher R version is not available can anybody please help me how
do I use the "knitr Html" option in R studio.
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
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",
2016 May 03
2
vignette/knitr help
I need some help understanding a problem running the tests on the
'digest' package. Initially, I got the message that the 'knitr' package
was needed to run vignettes:
Running vignettes for package ?digest?
Error in loadVignetteBuilder(vigns$pkgdir) :
vignette builder 'knitr' not found
So I installed the knitr package and all its dependents (?mime?,
?stringi?,
2016 May 03
2
vignette/knitr help
On 5/3/16 11:29 AM, Thierry Onkelinx wrote:
> Dear Mick,
>
> Note that both knitr and rmarkdown are listed under Suggests: both are
> required to compile the vignette. Installing rmarkdown should solve
> the problem. If not, please provide more information. OS, R version,
> digest version, ...
>
>
This is occurring in the context of an automated testing environment
that
2012 Sep 04
3
R, knitr y markdown . ¿Cómo insertar tabla de contenidos en documento markdown?
Hola, ¿qué tal?
Estoy haciendo un informe con R, knitr, y markdown y no sé cómo podría
añadirle una tabla de contenidos. O mejorar el aspecto del fichero
final en html.
¿Algún consejo?
Gracias.
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
2013 Mar 26
1
Execution halted when I use knitr and Rscript with opts_chunk
Hello all,
I wrote a bash script in Mac OS that takes my .rnw file, knit it and then
makes a .pdf. To knit my file, I'm using the command
Rscript -e "library(knitr); knit('file.rnw', encoding='utf8')"
and everything works fine. However, I don't want the ## characters in my
final document. I tested, using R prompt, the following commands
library(knitr)
2013 Mar 02
2
How to start console output with a comment sign (as in knitr)
Dear all,
knitr writes a comment sign in front of each line of console output. This extremely useful, especially for beginners who are starting to write scripts. One could just compose their script in the console (getting immediate output) and then copy the whole chunk into their .r-file.
I have been able to configure the options such that the prompt and the continuing line labels are replaced
2012 Nov 29
2
googleVis plot and knitr/sweave
Dear R users.
I'm currently making a report with knitr (RStudio) where I would like to
plot a googleVis map. However, the map generated is an HTML file which I
don't know how to integrate it in my report.
So my question is how to include a map generated with googleVis in a PDF
created with knitr/sweave.
Regards,
Phil
--
View this message in context:
2016 Aug 28
2
Problemas para delimitar chunks con la fucnción spin en el paquete knitr
Estimados miembros de la lista,
Estoy trabajando con la función spin del paquete knitr y no puedo entender
por que a pesar de usar #+ para iniciar cada chunk no reconoce el inicio de
un nuevo chunk al menos que incluya texto entre cada inicio de chunk. En
el ejemplo abajo
#+
data(cars)
#+
cars
No los separa como 2 chunks diferentes
Ejemplo de mi archivo en r (prueba.R)
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
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
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}
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