powered by
plot xpm data using ggplot2
plot_xpm(xpm_data, interpolate = FALSE)
a ggplot2 object
a xpm object returned by read_xpm
logical indicating whether to use raster interpolation (TRUE) or discrete tiles (FALSE). Default is FALSE.
# \donttest{ library(xvm) xpm_file_path <- system.file("extdata/gibbs.xpm", package = "xvm") xpm_data <- read_xpm(xpm_file_path) plot_xpm(xpm_data) # plot the xpm data using plot_xpm() function # }
Run the code above in your browser using DataLab