Last active
March 19, 2019 03:58
-
-
Save neilfws/3cd1c82d2c05876467cea25873a2b4fd to your computer and use it in GitHub Desktop.
ztable Rmd example for https://stackoverflow.com/questions/55231019/how-can-i-show-my-ztable-when-i-use-knit-to-html-in-r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "ztable" | |
author: "Neil Saunders" | |
date: "19 March 2019" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
library(ztable) | |
library(magrittr) | |
options(ztable.type = "html") | |
``` | |
## R Markdown | |
```{r results='asis'} | |
matrix(1:100, nrow = 10) %>% | |
as.data.frame() %>% | |
ztable() %>% | |
makeHeatmap() %>% | |
print(caption = "table 2") | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result: