r markdown - How to rotate or adjust a big table in Rmarkdown? -


here example:

--- title: "there reproductible example" output: pdf_document ---  ```{r table-simple, echo=false, message=false, warnings=false, results='asis'} require(pander) panderoptions('table.split.table', inf) set.caption("my great data") my.data <- " # replace text below table data anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement|anticonstitutionnellement "  df <- read.delim(textconnection(my.data),header=false,sep="|",strip.white=true,stringsasfactors=false) names(df) <- unname(as.list(df[1,])) # put headers on df <- df[-1,] # remove first row row.names(df)<-null pander(df, style = 'rmarkdown') ``` 

in final pdf outputs, words overlap.

i use "kable", "table", "print"
have idea words not overlap?

if table huge, want table rotate automatically in landscape format. possible?

you try add option:

    classoption: landscape 

in head section

--- title: "there reproductible example" output: pdf_document classoption: landscape --- 

this produce landscape version of document.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -