Skip to content

Commit

Permalink
clarify filtering used in epoch images, and add erp_image test
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Jul 1, 2021
1 parent 0f23749 commit ba4842e
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 4 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ importFrom(signal,filtfilt)
importFrom(signal,freqz)
importFrom(stats,cor)
importFrom(stats,cov)
importFrom(stats,fft)
importFrom(stats,median)
importFrom(stats,mvfft)
importFrom(stats,nextn)
Expand Down
3 changes: 1 addition & 2 deletions R/epoch_images.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Plot ERP images
#'
#' Plot an ERP image from a single electrode. Smooths over a series of trials in
#' Plot an ERP image from a single electrode. Uses a boxcar smooth over a series of trials in
#' order to make across-trial patterns more apparent.
#'
#' @examples
Expand All @@ -14,7 +14,6 @@
#' @param ... Other arguments passed to the method.
#' @author Matt craddock \email{matt@@mattcraddock.com}
#' @import ggplot2
#' @importFrom scales squish
#' @return A `ggplot` object
#' @export

Expand Down
2 changes: 1 addition & 1 deletion man/erp_image.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions tests/testthat/test-epoch_images.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test_that("epoch images plot correctly", {
skip_on_ci()
vdiffr::expect_doppelganger(
"ERP image A29 from demo epochs",
erp_image(demo_epochs,
"A29")
)
})

0 comments on commit ba4842e

Please sign in to comment.