tests/testthat/test_plot.r

context('test_plot')

data(sinkhole)

test_that('Test Plotting Raw Data Without Topography', {
  plotRawData(sinkhole@profiles[[1]])
  plot(sinkhole@profiles[[1]],
       dataType = 'raw',
       withTopo = F)
})

test_that('Test Plotting Raw Data With Topography', {
  plotRawDataWithTopo(sinkhole@profiles[[1]])
  plot(sinkhole@profiles[[1]],
       dataType = 'raw',
       withTopo = T)
})

test_that('Test Plotting Processed Data Without Topography', {
  plotProcessedData(sinkhole@profiles[[1]])
  plot(sinkhole@profiles[[1]],
       dataType = 'processed',
       withTopo = F)
})

test_that('Test Plotting Processed Data With Topography', {
  plotProcessedDataWithTopo(sinkhole@profiles[[1]])
  plot(sinkhole@profiles[[1]],
       dataType = 'processed',
       withTopo = T)
})

test_that('Test Plotting Profile Set With Topography', {
  plot(sinkhole,
       dataType = 'processed',
       withTopo = T)
})

Try the geoelectrics package in your browser

Any scripts or data that you put into this service are public.

geoelectrics documentation built on Feb. 16, 2023, 8:06 p.m.