Usage
knitrSet(basename=NULL, w=4, h=3, fig.path=if(length(basename)) basename else '', fig.align='center', fig.show='hold', fig.pos='htbp', fig.lp=paste('fig', basename, sep=':'), dev=switch(lang, latex='pdf', markdown='png'), tidy=FALSE, error=FALSE, messages=c('messages.txt', 'console'), width=61, decinline=5, size=NULL, cache=FALSE, echo=TRUE, results='markup', lang=c('latex','markdown'))
plotlySave(x, ...)
Arguments
basename
base name to be added in front of graphics file
names. basename
is followed by a minus sign.
w,h
default figure width and height in inches
fig.path
path for figures. To put figures in a subdirectory
specify e.g. fig.path='folder/'
.
fig.align,fig.show,fig.pos,fig.lp,tidy,cache,echo,results,error,size
see knitr documentation
dev
graphics device, with default figured from lang
messages
By default warning and other messages such as those
from loading packages are sent to file 'messages.txt'
in the
current working directory. You can specify
messages='console'
to send them directly to the console.
width
text output width for R code and output
decinline
number of digits to the right of the decimal point to
round numeric values appearing inside Sexpr
lang
Default is 'latex'
to use LaTeX. Set to
markdown
when using R Markdown.
x
a plotly
graphics object or a named list of such
objects. The resulting png
file will go in the file path
given by the knitr
fig.path
value, and have a base
name equal to the current knitr
chunk name. If x
is a
list, a minus sign followed by the chunk name are inserted before
.png
.
...
additional arguments passed to plotly::plotly_IMAGE