Skip to content

Instantly share code, notes, and snippets.

@neilfws
Last active Mar 19, 2019
Embed
What would you like to do?
---
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