Skip to content

Latest commit

 

History

History
executable file
·
42 lines (26 loc) · 789 Bytes

README.md

File metadata and controls

executable file
·
42 lines (26 loc) · 789 Bytes

ggRetro

ggRetro is a package for creating floating axes, like in base R.

Basic Usage

library(dplyr)
library(ggplot2)
library(ggRetro)

p = ggplot(mtcars) +
  geom_line(aes(mpg, wt)) +
  theme_bw()
p |> base_mode()

## [1] "Both numeric"

For Facet plot

p |> base_facet(c("vs"))

## [1] "Both numeric"
## [1] "Both numeric"

Better default theme with oh_my_ggplot


oh_my_ggplot()

p |> base_mode()

## [1] "Both numeric"