Skip to content

Instantly share code, notes, and snippets.

@neilfws
Last active March 19, 2019 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilfws/3cd1c82d2c05876467cea25873a2b4fd to your computer and use it in GitHub Desktop.
Save neilfws/3cd1c82d2c05876467cea25873a2b4fd to your computer and use it in GitHub Desktop.
---
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")
```
@neilfws
Copy link
Author

neilfws commented Mar 19, 2019

Result:

ztable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment