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()