项目作者: briandconnelly

项目描述 :
Minimal and flexible 'ggplot2' themes using 'Lato' Typeface
高级语言: R
项目地址: git://github.com/briandconnelly/lato.git
创建时间: 2017-11-18T00:31:14Z
项目社区:https://github.com/briandconnelly/lato

开源协议:Other

下载


lato

Project Status: WIP – Initial development is in progress, but there
has not yet been a stable, usable release suitable for the
public.
BSD
License

This package is in early development. It probably will not work well
for you.

It will also be re-named.

Installation

This package is not ready for CRAN just
yet, but you can use
devtools
to be wild and install install the latest and greatest development
version. To do so:

  1. if(!require("devtools")) install.packages("devtools")
  2. devtools::install_github("briandconnelly/lato")

Example

  1. library(ggplot2)
  2. library(lato)
  3. p1 <- ggplot(mtcars, aes(wt, mpg, color = as.factor(cyl) )) +
  4. facet_grid(cyl ~ .) +
  5. geom_line() +
  6. geom_point() +
  7. scale_color_hue(name = "# Cylinders") +
  8. labs(
  9. x = "Weight (tons)",
  10. y = "Fuel Efficiency (mpg)",
  11. title = "Just Buy a Convertible",
  12. subtitle = "Lighter cars are more efficient. Shave off some weight by\nditching the roof, and drive your savings to the bank!",
  13. caption = "Source: Motor Trend"
  14. ) +
  15. theme_lato()
  16. p1

Dark Mode

  1. p1 + theme_lato_dark()

Contributer Code of Conduct

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