ggpsd: Plot one or more particle size distributions

View source: R/ggpsd.R

ggpsdR Documentation

Plot one or more particle size distributions

Description

Displays the cumulative percent of sample passing a range of sizes.

Usage

ggpsd(
  df,
  units = "microns",
  points = TRUE,
  log_lines = TRUE,
  bold_log_lines = TRUE,
  ...
)

Arguments

df

Data frame containing columns titled microns and percent_passing

units

Whether x-axis should be displayed in μcm or mm

points

Whether to include points on the plot (default is TRUE, set to FALSE for lines only)

log_lines

Logical. Plot the canonical log-10 vertical grid?

bold_log_lines

Logical. Plot thicker lines at 0.1, 1, 10, 100, and 1000 microns

...

Other arguments passed on to aes() in the initial call to ggplot() (affects both points and lines)

Details

This function is designed for plotting multiple specimens via the (...) argument passed internally to aes(). See ggpsd_single_sample() for plotting only a single sample. That function automatically annotates the plot subtitle with additional information about the test.

Value

a ggplot object


evanmascitti/soiltestr documentation built on Oct. 6, 2022, 5:32 p.m.