knitRBootstrap:缩放选项,缩略图大小和绘图大小 [英] knitRBootstrap: zoom options, thumbnail size, and plot size

查看:93
本文介绍了knitRBootstrap:缩放选项,缩略图大小和绘图大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用knitRBootstrap时是否可以更改默认缩放级别?

我知道在knitRbootstrap设置中可以更改缩略图的大小,但这并没有很大的灵活性,因为存在最大值:

knit_bootstrap_md(input=inputFile, output=outputFile, boot_style = 'cerulean',    
    code_style="Google Code", 
    chooser=NULL, thumbsize = 9, show_code=FALSE)

我喜欢knitRbootsrap的功能,并且比传统的knitR更喜欢它,但不确定最简单的自定义图像大小以允许某些图/图看起来更大的方法

解决方案

knitrBootstrap的当前github版本具有用于bootstrap.thumbnail.size的图像缩略图大小的块选项.它们对应于引导网格选项,默认值为col-md-6.

新版本尚未在CRAN上提供,但您可以使用devtools轻松安装. install.packages('devtools') library(devtools) install_github('jimhester/knitrBootstrap')

请参见 knitrBootstrap github页面,以获取所有选项的详细信息以及使用新版本的信息. /p>

Is it possible to change the default zoom level when using knitRBootstrap?

I know in my knitRbootstrap settings I can change the thumbnail size, but that doesn't allow a lot of flexibility as there is a max value:

knit_bootstrap_md(input=inputFile, output=outputFile, boot_style = 'cerulean',    
    code_style="Google Code", 
    chooser=NULL, thumbsize = 9, show_code=FALSE)

I like the features of knitRbootsrap and prefer it over conventional knitR, but not sure the easiest way to customize image size to allow for certain plots/charts to appear larger

解决方案

The current github version of knitrBootstrap has a chunk option for the image thumbnail size with bootstrap.thumbnail.size. They correspond to the bootstrap grid options, the default is col-md-6.

The new version is not yet available on CRAN, but you can install it easily with devtools. install.packages('devtools') library(devtools) install_github('jimhester/knitrBootstrap')

Please see the knitrBootstrap github page for full details on all the options and using the new version.

这篇关于knitRBootstrap:缩放选项,缩略图大小和绘图大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆