Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 777
---
title: "R Markdown and prettydoc" subtitle: "The Architect Theme" author: "Harald Schilly" date: "`r Sys.Date()`" output: prettydoc::html_pretty: theme: architect
---
# transparent plots library(ggplot2) theme_set(theme_bw(base_size=12)) theme_update(panel.background = element_rect(fill = "transparent", colour = NA), plot.background = element_rect(fill = "transparent", colour = NA)) knitr::opts_chunk$set(dev.args=list(bg="transparent"))

Info

This is taken from http://yixuan.cos.name/prettydoc/ showcasing the "Architect" theme. Derived from work by Yixuan Qiu.

Headers

Level 4

Level 5

A demo table

DfSum SqMean SqF valuePr(>F)
Block5343.368.664.4470.01594*
N1189.3189.2812.2590.00437**
P18.48.400.5440.47490
K195.295.206.1660.02880*
N:P121.321.281.3780.26317
N:K133.133.142.1460.16865
P:K10.50.480.0310.86275
Residuals12185.315.44

Lists

There are three kinds of lies:

  1. Lies

  2. Damned lies

  3. Statistics

    • Frequentists

    • Bayesian

    • ...

Supported highlighters in prettydoc:

  • github: Style similar to Github

  • vignette: Style used by rmarkdown::html_vignette

Markups

Bold, italic, don't say this.

Code

Familiar knitr R code and plots:

n <- 1000 x1 <- matrix(sort(rnorm(n, mean = 2, sd = 2.5)), ncol = 2) x2 <- matrix(rnorm(n, mean = 2.5, sd = 2.5), ncol = 2) x <- rbind(x1, x2) smoothScatter(x, xlab = "x1", ylab = "x2") head(x)

Data Frame visualized via knitr::kable

knitr::kable(head(data.frame(x1=x1, x2=x2)))