Nothing
#' Plot a cartogram object
#'
#' @param x a cartogram object
#'
#' @param \\dots arguments passed to or from other methods.
#' @return No return value, called for side effects
#'
#' @export
#' @examples
#' \donttest{
#' data(usa)
#' carto <- cartogramR(usa, "electors64")
#' plot(carto)
#' }
#'
#' @import sf
#' @md
plot.cartogramR <- function(x, ...) {
if (!inherits(x, "cartogramR")) stop(paste(deparse(substitute(x)), "must be a cartogramR object"))
x <- sf::st_geometry(x$cartogram)
plot(x, ...)
return(invisible(NULL))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.