tests/testthat/test_plot_polygon.R

cat("\nTesting plot_polygon()\n")

# lon <- c(6.849975, 6.849627, 6.850001, 6.850350, 6.849975)
# lat <- c(52.241745, 52.241100, 52.241004, 52.241649, 52.241745)
# polygon <- data.frame(lon, lat)
# remove(lon, lat)
#
# plot <- psyosphere::plot_polygon(polygon)
# plot
#
# # Check results
# if (!ggplot2::is.ggplot(plot)) {
#   stop("plot is not a ggplot variable")
# }

Try the psyosphere package in your browser

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

psyosphere documentation built on July 2, 2020, 12:08 a.m.