Learn R Programming

simplevis (version 5.0.0)

theme_no_gridlines: Theme for graphs with no gridlines.

Description

Theme for graphs with no gridlines.

Usage

theme_no_gridlines(font_family = "", font_size_title = 11, font_size_body = 10)

Arguments

font_family

Font family to use. Defaults to "".

font_size_title

Font size for the title text. Defaults to 11.

font_size_body

Font size for all text other than the title. Defaults to 10.

Value

A ggplot theme.

Examples

Run this code
# NOT RUN {
library(simplevis)
library(ggplot2)

ggplot() +
  scale_x_continuous(breaks = seq(0, 10, 2), limits = c(0, 10), expand = c(0, 0)) +
  scale_y_continuous(breaks = seq(0, 10, 2), limits = c(0, 10), expand = c(0, 0)) +
  ggtitle("This is a title with a specified font family and size") +
  theme_no_gridlines("Courier", 9, 7) 
  
# }

Run the code above in your browser using DataLab