library(knitr) opts_chunk$set(out.extra='style="display:block; margin: auto"' #, fig.align="center" , fig.width=4.3, fig.height=3.2, dev.args=list(pointsize=10) ) knit_hooks$set(spar = function(before, options, envir) { if (before){ par( las=1 ) #also y axis labels horizontal par(mar=c(2.0,3.3,0,0)+0.3 ) #margins par(tck=0.02 ) #axe-tick length inside plots par(mgp=c(1.1,0.2,0) ) #positioning of axis title, axis labels, axis } })
Vignettes source code resides in inst/doc
.
Use knitr::knit2html(fName)
to convert it to html.
Function genVigs()
in package twDev
Text decoration
italics, italics
bold, bold
* monopace
Links * A link example
R chunk options
echo (TRUE)
results (markup, asis, hide)
* with hide errors and warnings will still be visible
include (TRUE): set to FALSE to have nothing in the doc
eval (TRUE)
* fig.width, fig.height (7) in inches
$$latex a_i = \begin{cases} \tan (e_{i2}/e_{i1}), & \text{if $e_{i1}>0$;} \newline \tan (e_{i2}/e_{i1}) + \pi, & \text{otherwise.} \end{cases} $$
## simple plot plot(1:10,2:11)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.