Skip to contents

Themes and other useful graphing utilities for the HASP package

Usage

theme_gwl(base_family = "", ...)

hasp_framework(
  x_label,
  y_label,
  plot_title,
  include_y_scale = FALSE,
  zero_on_top = TRUE,
  subtitle = "U.S. Geological Survey"
)

Arguments

base_family

character base font family

...

additional arguments

x_label

character. Label for x-axis.

y_label

character. Label for y-axis.

plot_title

character. Title for plot.

include_y_scale

logical. If TRUE, include groundwater type style for y-axis. Default is FALSE.

zero_on_top

logical. If zero_on_top is TRUE, there is no padding at the top of y axis. If FALSE, no padding at the bottom. If NA, padding on both top and bottom.

subtitle

character. Sub-title for plot, default is "U.S. Geological Survey".

Examples


ggplot2::ggplot() + theme_gwl()




x_label <- "Date"
y_label <- "Level"
plot_title <- "Super Site"

ggplot2::ggplot() + 
     hasp_framework(x_label, 
                    y_label, 
                    plot_title)