Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
boB Rudis 3eea510734
linux font name woes
5 anni fa
R linux font name woes 5 anni fa
inst initial commit 5 anni fa
man linux font name woes 5 anni fa
tests R package repo initialization complete 5 anni fa
.Rbuildignore initial commit 5 anni fa
.codecov.yml R package repo initialization complete 5 anni fa
.gitignore R package repo initialization complete 5 anni fa
.travis.yml R package repo initialization complete 5 anni fa
CONDUCT.md R package repo initialization complete 5 anni fa
DESCRIPTION Add myself as ctb 5 anni fa
LICENSE initial commit 5 anni fa
LICENSE.md initial commit 5 anni fa
NAMESPACE linux font name woes 5 anni fa
NEWS.md R package repo initialization complete 5 anni fa
README.Rmd README 5 anni fa
README.md linux font name woes 5 anni fa
ggexpanse.Rproj R package repo initialization complete 5 anni fa

README.md

Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped. Signedby Signed commit% Linux buildStatus
Minimal RVersion License

ggexpanse

Theme Elements Based On ‘The Expanse’

Description

Plot aesthetic defaults and theme elements inspired by ‘The Expanse’.

What’s Inside The Tin

A copy of the Protomolecule Font.

The following functions are implemented:

  • expanse_cols: Colors from The Expanse (WIP)
  • expanse_pal: Color palette based on selected colors from expanse_cols
  • import_protomolecule: Import Protomolecule font for use in charts
  • protomolecule: Helper to get the right font name for varous operating systems
  • scale_colour_expanse: Discrete color & fill scales based on “The Expanse” palette
  • theme_expanse: An “Expanse” theme for ggplot2

Installation

install.packages("ggexpanse", repos = "https://cinc.rud.is")
# or
remotes::install_git("https://git.rud.is/hrbrmstr/ggexpanse.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/ggexpanse")
# or
remotes::install_gitlab("hrbrmstr/ggexpanse")
# or
remotes::install_bitbucket("hrbrmstr/ggexpanse")
# or
remotes::install_github("hrbrmstr/ggexpanse")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(ggexpanse)

# current version
packageVersion("ggexpanse")
## [1] '0.1.0'

extrafont::loadfonts(quiet=TRUE)
scales::show_col(as.character(expanse_cols))

scales::show_col(expanse_palette)

ggplot() +
  geom_smooth(
    data = mtcars, method = "lm", 
    aes(wt, mpg), colour = "white", 
    fill = "gray60", show.legend = FALSE
  ) +
  geom_point(
    data = mtcars,
    aes(wt, mpg, fill = factor(carb)), 
    shape = 21, color = "gray60", size = 4
  ) +
  scale_colour_expanse() +
  scale_fill_expanse() +
  labs(
    title = "Stars Are Better_Off Without Us",
    subtitle = "Say what you_will about organized_crime, at least it’s organized."
  ) +
  theme_expanse(grid = "XY")

ggexpanse Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 7 0.88 220 0.88 43 0.68 80 0.7
Rmd 1 0.12 29 0.12 20 0.32 34 0.3

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.