View source: R/plot_functions.R
plot_xpm | R Documentation |
plot xpm data using ggplot2
plot_xpm(xpm_data, interpolate = FALSE)
xpm_data |
a xpm object returned by read_xpm |
interpolate |
logical indicating whether to use raster interpolation (TRUE) or discrete tiles (FALSE). Default is FALSE. |
a ggplot2 object
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.