tests/testthat/test_plotLegend.r

context('test_plotLegend')

data(sinkhole)

test_that('Test Plotting Legend of Single Profile', {
  plot.new()
  plotLegend(sinkhole@profiles[[3]], horizontal = F)
})

test_that('Test Plotting Legend of Profile Set', {
  plot.new()
  plotLegend(sinkhole)
})

test_that('Test Plotting Legend of Single Profile With Custom Lab Breaks', {
  plot.new()
  plotLegend(
    sinkhole@profiles[[3]],
    horizontal = F,
    lab.breaks = c(10, 100, 500, 5000, 15000)
  )
})

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.