The goal of jastyle is to …
You can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("januaryadvisors/jastyle")
You need to have Roboto Condensed installed. Check your system to see if you do. If not, go here and download it here.
library(jastyle)
ja_font()
#> [1] "Roboto Condensed"
library(tidyverse)
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ──
#> ✔ ggplot2 3.3.5 ✔ purrr 0.3.4
#> ✔ tibble 3.1.8 ✔ dplyr 1.0.7
#> ✔ tidyr 1.1.4 ✔ stringr 1.4.0
#> ✔ readr 2.1.1 ✔ forcats 0.5.1
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ dplyr::lag() masks stats::lag()
ggplot(iris) +
geom_point(aes(x=Sepal.Length, y=Sepal.Width, color=Species), size=3) +
ggtitle("Title here", subtitle = "Subtitle here") +
labs(caption = "Source: Add source here.") +
theme_ja()
library(highcharter)
#> Registered S3 method overwritten by 'quantmod':
#> method from
#> as.zoo.data.frame zoo
#> Highcharts (www.highcharts.com) is a Highsoft software product which is
#> not free for commercial and Governmental use
highcharter::hchart(iris, "scatter", hcaes(Sepal.Length, Sepal.Width, color=Species)) %>%
hc_title(text = "Title here") %>%
hc_subtitle(text = "Subtitle here.") %>%
hc_caption(text = "<strong>Source</strong>: Source here.") %>%
hc_add_theme(ja_hc_theme())
ja_view_colors()
ggplot(iris) +
geom_point(aes(x=Sepal.Length, y=Sepal.Width, color=Species), size=3) +
ggtitle("Title here", subtitle = "Subtitle here") +
labs(caption = "Source: Add source here.") +
scale_color_manual(
values = c(ja_hex("blue"), ja_hex("orange"), ja_hex("green"))
) +
theme_ja()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.