Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
/ fontHind Public archive

ggplot2 themes based on the Hind fonts

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.note
Notifications You must be signed in to change notification settings

bhaskarvk/fontHind

Repository files navigation

Hind font Based ggplot2 Themes.

Project Status: Active – The project is being actively developed. Last-changedate License: MIT keybase verified

Travis-CI Build Status AppVeyor Build Status

minimal R version packageversion CRAN_Status_Badge


This is an add-on pacakge for hrbrthemes pacakge. It provides ggplot2 theme based on Hind font.

Hind is an Open Source typeface supporting the Devanagari and Latin scripts. Developed explicitly for use in User Interface design, the Hind font family includes five styles. More information about the font can be found at https://fonts.google.com/specimen/Hind.

The package is released under MIT License while the Hind fonts are released under the SIL Open Font License 1.1.

Installation

install.packages('hrbrthemes')

if(!require(devtools)) {
  install.packages("devtools")
}
devtools::install_github('bhaskarvk/fontHind')
fontHind::import_hind() # Required only once

The fontHind::import_hind() call will import the Hind fonts in your extrafont database. You will then need to install the Hind fonts in the directory mentioned in the output of that call as per your operating system's way of installing fonts.

Usage

Hind Fonts

library(ggplot2)
library(fontHind)

gg <- ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  labs(x="Fuel efficiency (mpg)", y="Weight (tons)",
       title="Seminal ggplot2 scatterplot example",
       subtitle="A plot that is only useful for demonstration purposes",
       caption="Brought to you by the letter 'g'")

gg + theme_ipsum_hind()

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.

Releases

No releases published

Packages

No packages published

Languages