powered by
Given a "spec" object, which shows a spectrum across a range of frequencies, returns a tidy data frame with two columns: "freq" and "spec"
# S3 method for spec tidy(x, ...)
an object of class "spec"
extra arguments (not used)
a data frame with "freq" and "spec" columns
# NOT RUN { spc <- spectrum(lh) tidy(spc) library(ggplot2) ggplot(tidy(spc), aes(freq, spec)) + geom_line() # }
Run the code above in your browser using DataLab