50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

xvm (version 0.0.2)

plot_xpm: plot xpm data

Description

plot xpm data using ggplot2

Usage

plot_xpm(xpm_data, interpolate = FALSE)

Value

a ggplot2 object

Arguments

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.

Examples

Run this code
# \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