ggRetro
suppressPackageStartupMessages({ library(dplyr) library(ggplot2) library(ggRetro) }) knitr::opts_chunk$set(echo = TRUE)
ggRetro
is a package for creating floating axes, like in base R.
library(dplyr) library(ggplot2) library(ggRetro) p = ggplot(mtcars) + geom_line(aes(mpg, wt)) + theme_bw() p |> base_mode()
p |> base_facet(c("vs"))
Better default theme with oh_my_ggplot
oh_my_ggplot() p |> base_mode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.