Plot a Frequency Series (`fs`)
plot.fs.RdVisualizes the amplitude (or PSD) of an `fs` object using ggplot2.
Usage
# S3 method for class 'fs'
plot(
x,
...,
log = "xy",
xlab = "Frequency (Hz)",
ylab = "PSD",
xlim = NULL,
ylim = NULL
)Arguments
- x
An `fs` object.
- ...
Additional arguments in `geom_line()`.
- log
A character ("x", "y", or "xy") to control log scaling.
- xlab
A character. X-axis label (default: "Frequency (Hz)").
- ylab
A character. Y-axis label (default: "PSD").
- xlim
A numeric vector of length 2 specifying x-axis limits.
- ylim
A numeric vector of length 2 specifying y-axis limits.