What is the best way to generate good looking regression tables for slidify?
---
## Custom Tables
```{r, results = "asis", echo = FALSE}
library(xtable)
OLS <- lm(hp ~ wt, mtcars)
print(xtable(OLS), type="html", html.table.attributes='class=mytable', label ="OLS", digits = 3)
```
<style>
table.mytable {
border: none;
width: 100%;
border-collapse: collapse;
font-size: 45px;
line-height: 50px;
font-family: 'Ubuntu';'Trebuchet MS';
font-weight: bolder;
color: blue;
}
table.mytable tr:nth-child(2n+1) {
/* background: #E8F2FF; */
background: #FFFFFF;
}
</style>
I would like to be able to change the names ('Constant' instead of Intercept, and 'Weight' instead of wt), add the number of observations, R-squared, F Statistic, etc.
Thanks!