This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.

Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Cmd+Shift+Enter.

library(knitr)
opts_chunk$set(include = F, fig.showtext = TRUE)
library(tidyverse)
library(ptrr)
# library(scales)
library(ggtext)
library(showtext)
# library(extrafont)
showtext_auto()
# library(ggbeeswarm)```
sysfonts::font_add(family = "Unit Pro", regular = "UnitPro.otf",
                   italic = "UnitPro-Ita.otf", bold = "UnitPro-Bold.otf")
sysfonts::font_add(family = "Unit Slab Pro", regular = "UnitSlabPro.otf",
                   italic = "UnitSlabPro-Ita.otf", bold = "UnitSlabPro-Bold.otf")
sysfonts::font_families()
showtext_auto()
ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  ptrr::theme_ipr(axis_titles = T)

Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Cmd+Option+I.

When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Cmd+Shift+K to preview the HTML file).

The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.



petrbouchal/ptrr documentation built on Oct. 10, 2024, 7:21 a.m.