sm_slope_theme: SM plot with a theme appropriate for the slope chart

View source: R/sm_slope_theme.R

sm_slope_themeR Documentation

SM plot with a theme appropriate for the slope chart

Description

In this plot, all aspects except for the left-handed spine are missing. This format is appropriate for the slope chart.

Usage

sm_slope_theme(legends = TRUE)

Arguments

legends

#' If the legend needs to be displayed, the input should be TRUE. If the legend is not needed, the input should be FALSE.

Value

Returns a background theme that is suitable for a slope chart (ggplot2 output).

Examples

library(ggplot2)
library(smplot2)

ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
sm_slope_theme()


smin95/sesplot documentation built on July 2, 2024, 9:35 a.m.