r - How to adjust the output width of RStudio Markdown output (to HTML) -


i producing html output principal components analysis , trying improve layout. problem way r outputting data, not using full width of output chunks.

i'm able adjust figure width no difficulty when try write data table or factor loadings, r outputting @ fixed width third of screen width. results in columns of table being split rather of columns displayed in single table.

i can supply code if required question should simple , i'm surprised it's not been asked before. in advance.

matt

edit: added reproducible example

title ========================================================  ```{r echo = false, message=false, warning=false, error=false,fig.width=16, fig.height=6} x = matrix(rnorm(100),ncol=10) x plot(x) ``` 

this screen capture of final html file

add @ start of document:

```{r set-options, echo=false, cache=false} options(width = some-really-big-value) ``` 

obviously, replace some-really-big-value number. want horizontal scrolling?

your output being wrapped somewhere around 80 characters or so.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -