2015-10-06 63 views
1

我有一個R標記,我編織到RStudio內的HTML。我可以使用fig.width和fig.height來調整我的圖的分辨率,但我似乎無法擴大頁面輸出,以便文本輸出不會打包,或者使得圖顯得更大。我曾嘗試:Knitr忽略寬度和out.width選項

```{r} 
options(width=2000) 
``` 

```{r} 
knitr::opts_knit$set(width=2000) 
``` 

```{r,out.width=2000} 
``` 

輸出頁面寬度不會改變。任何幫助將非常感激。

回答

0

該RMD文件產生不同的地塊面積:

--- 
title: "Untitled" 
author: "Me" 
date: "6 - 10 - 2015" 
output: html_document 
--- 
I have a R Markdown that I knit to html from within RStudio. I can use fig.width and fig.height to adjust the resolution of my plots but I can't seem to widen the page output so that text output doesn't wrap or so that the plots appear physically larger. I have tried: 

```{r} 
options(width=2000) 
``` 
and 

```{r} 
knitr::opts_knit$set(width=2000) 
plot(cars) 
``` 
and 

```{r,out.width=2000} 
#using out.width=2000 
plot(cars) 
``` 
or 
```{r,fig.width=4} 
#using fig.width=4 
plot(cars) 
``` 

enter image description here

+0

是改變圖形的大小,但仍僅限於頁面大小。我想增加我猜的頁面大小。增加fig.width工作,直到fig.width == \ linewidth那麼輸出圖像只是調整大小,但沒有物理上更大。我可以設置fig.width = 2000,這將是blury,我仍然必須眯起眼睛來製作小文本。 –