Additional Themes and Theme Components for ‘ggplot2’ This is a very focused package that provides typography-centric themes and theme components for ggplot2. The core theme:theme_ipsum(“ipsum” is Latin for “precise”) uses Arial Narrow which should be installed on practically any modern syst...
remotes::install_github("hrbrmstr/hrbrthemes") 主题 theme_ipsum library(ggplot2) library(hrbrthemes) library(showtext) # 对于没有的字体,自行下载字体文件后通过 showtext 包加载进R环境。 showtext_auto() p = ggplot(mpg, aes(class, fill = drv)) + geom_bar(width = 0.7) + theme(legend.posit...
# or remotes::install_bitbucket("hrbrmstr/hrbrthemes") # or remotes::install_github("hrbrmstr/hrbrthemes") 基础主题 library(hrbrthemes) library(gcookbook) library(tidyverse) ggplot(data = diamonds,aes(x = carat,y = price))+geom_point() +theme_ipsum() 使用的数据是diamonds数据集 image.png...
install.packages("hrbrthemes",repos="https://cinc.rud.is")# orremotes::install_git("https://git.rud.is/hrbrmstr/hrbrthemes.git")# orremotes::install_git("https://git.sr.ht/~hrbrmstr/hrbrthemes")# orremotes::install_gitlab("hrbrmstr/hrbrthemes")# orremotes::install_bitbucket("hrbrm...
remotes::install_github("hrbrmstr/hrbrthemes") 基础主题 library(hrbrthemes) library(gcookbook) library(tidyverse) ggplot(data = diamonds,aes(x = carat,y = price))+geom_point() +theme_ipsum() 使用的数据是diamonds数据集 image.png Roboto Condensed ...