Learn R Programming

CSGo (version 0.6.7)

theme_csgo: CSGo theme

Description

A CSGo theme to be used with ggplot2

Usage

theme_csgo(...)

Arguments

...

all available options of the theme function from ggplot2

Value

theme object

Examples

Run this code
# NOT RUN {
library(CSGo)
library(ggplot2)
library(dplyr)
library(showtext)

## Loading Google fonts (https://fonts.google.com/)
font_add_google("Quantico", "quantico")

df %>%
 top_n(n = 10, wt = value) %>%
 ggplot(aes(x = name_match, y = value, fill = name_match)) +
 geom_col() +
 ggtitle("KILLS BY WEAPON") +
 ylab("Number of Kills") +
 xlab("") +
 labs(fill = "Weapon Name") +
 theme_csgo(text = element_text(family = "quantico"))

# }

Run the code above in your browser using DataLab