plot_ndist: Plot Normal distribution

View source: R/plot_ndist.R

plot_ndistR Documentation

Plot Normal distribution

Description

Fit and plot a normal distribution histogram alongside a timeseries of the data the distribution has been fitted from

Usage

plot_ndist(
  df,
  columns = c(CH1_Hz, CH2_Hz),
  value_name = "Values",
  binwidth = NULL,
  pad_res = NULL,
  floor_unit = NULL,
  print_stats = FALSE
)

Arguments

df

data.frame containing a date column as POSIXct and the columns to plot

columns

column names expressed unquoted.

value_name

x axis label on histograms and y axis label on time series

binwidth

set binwidth argument for geom_histogram

pad_res

default NULL. When not NULL, pad the data using a time series at the this resolution in seconds

floor_unit

default NULL. When not NULL use lubridate::floor_date() to round the time stamp to this unit

print_stats

when TRUE, print the mean and sd to the console

Author(s)

W. S. Drysdale


willdrysdale/wsdmiscr documentation built on Aug. 26, 2023, 12:31 a.m.