This function removes a plot from a provided path.
Arguments
- path
Character. Path to the image.
- check_ext
Boolean. Whether to check the file extension.
Examples
p <- ggplot2::ggplot(cars) + ggplot2::geom_point(ggplot2::aes(dist, speed))
path <- save_plot(p)
remove_plot(path)